Skip to content

Commit

Permalink
Update dags_airflow_fede_default_queue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leggerf authored Jan 29, 2024
1 parent 13bd74f commit 2298e3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dags_airflow_fede_default_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_annotation():
#############################################################
# Define config for task with volume, mount host /tmp/ to /foo/
#############################################################
directory = os.getcwd().replace('\\', '/')
directory = os.getcwd().replace('\\', '/') # "/tmp/"
print(directory)
executor_config_volume_mount = {
"pod_override": k8s.V1Pod(
Expand All @@ -87,7 +87,7 @@ def test_annotation():
volumes=[
k8s.V1Volume(
name="test-volume",
host_path=k8s.V1HostPathVolumeSource(path=directory), # "/tmp/"
host_path=k8s.V1HostPathVolumeSource(path=directory),
)
],
)
Expand All @@ -107,6 +107,7 @@ def test_volume_mount():
Tests whether the volume has been mounted.
"""

log.info("Path on host "+directory)
foo_dir = Path("/foo")
if foo_dir.exists():
log.info("Can open /foo/")
Expand Down

0 comments on commit 2298e3d

Please sign in to comment.