Skip to content
Snippets Groups Projects
Commit 1050bae6 authored by John Chilton's avatar John Chilton
Browse files

Avoid loop when preprocessing fails and polling enabled.

Tweak to behavior added here https://github.com/galaxyproject/pulsar/commit/8242741ba15e5b753fbd7f2845156552071adfa0. Don't postprocess the failed job, just indicate the proxy status as failed and be done with it.
parent 88968c99
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,8 @@ class StatefulManagerProxy(ManagerProxy): ...@@ -113,7 +113,8 @@ class StatefulManagerProxy(ManagerProxy):
""" """
state_change = None state_change = None
if job_directory.has_metadata(JOB_FILE_PREPROCESSING_FAILED): if job_directory.has_metadata(JOB_FILE_PREPROCESSING_FAILED):
proxy_status = status.COMPLETE proxy_status = status.FAILED
job_directory.store_metadata(JOB_FILE_FINAL_STATUS, proxy_status)
state_change = "to_complete" state_change = "to_complete"
elif not job_directory.has_metadata(JOB_FILE_PREPROCESSED): elif not job_directory.has_metadata(JOB_FILE_PREPROCESSED):
proxy_status = status.PREPROCESSING proxy_status = status.PREPROCESSING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment