Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from QGreenland-Net/write-to-pvc
Browse files Browse the repository at this point in the history
Write to PVC in parsl run script
  • Loading branch information
mfisher87 authored Apr 18, 2024
2 parents 547a431 + 05c20bf commit 4222072
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def get_parsl_config():
init_blocks=1,
# Maximum number of pods to scale up
max_blocks=1,
# list of tuples w/ the format: (PVC Name, Mount Directory)
persistent_volumes=[("qgnet-pvc-test-1", "/data")],
),
),
]
Expand Down Expand Up @@ -105,7 +107,7 @@ def read_and_return(fp):
print(f"Random number: {random.result()}")

# Save the random number to a file
output_path = "sequential-output.txt"
output_path = "/data/sequential-output.txt"
saved = save_value_to_file(
value=random,
output_filepath=File(output_path),
Expand Down

0 comments on commit 4222072

Please sign in to comment.