Skip to content

Commit

Permalink
Merge pull request #18845 from mvdbeek/dont_attempt_to_collect_metric…
Browse files Browse the repository at this point in the history
…s_if_working_directory_hasnt_been_created_yet

[24.1] Skip metric collection if job working directory doesn't exist
  • Loading branch information
bgruening committed Sep 19, 2024
2 parents 0bdbb34 + 31189ad commit 4a3e6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ def fail(
message = str(message)
working_directory_exists = self.working_directory_exists()

if not job.tasks:
if not job.tasks and working_directory_exists:
# If job was composed of tasks, don't attempt to recollect statistics
self._collect_metrics(job, job_metrics_directory)

Expand Down

0 comments on commit 4a3e6dd

Please sign in to comment.