Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer retries fix #329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pulsar/client/action_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ def __init__(self, source, file_lister=None):
def path(self):
return self.source.get("path")

def path_exists(self):
return exists(self.path)

def unstructured_map(self, path_helper):
unstructured_map = self.file_lister.unstructured_map(self.path)
if self.staging_needed:
Expand Down
10 changes: 9 additions & 1 deletion pulsar/managers/staging/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,15 @@ def collect_output(self, results_collector, output_type, action, name):

pulsar_path = self.job_directory.calculate_path(name, output_type)
description = "staging out file {} via {}".format(pulsar_path, action)
self.action_executor.execute(lambda: action.write_from_path(pulsar_path), description)

if not action.path_exists():
log.warn(
f"Output not collectable. File does not exist: {pulsar_path}")
else:
self.action_executor.execute(
lambda: action.write_from_path(pulsar_path),
description,
)


def __pulsar_outputs(job_directory):
Expand Down