Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 committed May 28, 2024
1 parent 2865342 commit 434f804
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions parsl/executors/taskvine/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,11 @@ def _taskvine_submit_wait(ready_task_queue=None,
else:
task_in_file = _handle_file_declaration_protocol(m, spec.parsl_name, spec.cache)
parsl_file_name_to_vine_file[spec.parsl_name] = task_in_file
logger.debug("Adding input file {}, {} to TaskVine".format(task_in_file, task.executor_id))
t.add_input(task_in_file, spec.netloc)
logger.debug("Adding input file {}, {} to TaskVine".format(spec.parsl_name, task.executor_id))
if spec.netloc == '':
t.add_input(task_in_file, spec.parsl_name)
else:
t.add_input(task_in_file, spec.netloc)

for spec in task.output_files:
if spec.stage:
Expand All @@ -387,8 +390,11 @@ def _taskvine_submit_wait(ready_task_queue=None,
else:
task_out_file = _handle_file_declaration_protocol(m, spec.parsl_name, spec.cache)
parsl_file_name_to_vine_file[spec.parsl_name] = task_out_file
logger.debug("Adding output file {}, {} to TaskVine".format(task_out_file, task.executor_id))
t.add_output(task_out_file, spec.netloc)
logger.debug("Adding output file {}, {} to TaskVine".format(spec.parsl_name, task.executor_id))
if spec.netloc == '':
t.add_output(task_out_file, spec.parsl_name)
else:
t.add_output(task_out_file, spec.netloc)

# Submit the task to the TaskVine object
logger.debug("Submitting executor task {}, {} to TaskVine".format(task.executor_id, t))
Expand Down
2 changes: 1 addition & 1 deletion parsl/executors/taskvine/stub_staging_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

logger = logging.getLogger(__name__)

known_url_schemes = ["file", "http", "https", "taskvinetemp"]
known_url_schemes = ["http", "https", "taskvinetemp"]


class StubStaging(Staging, RepresentationMixin):
Expand Down

0 comments on commit 434f804

Please sign in to comment.