Skip to content
Snippets Groups Projects
Commit 87e11905 authored by John Chilton's avatar John Chilton Committed by GitHub
Browse files

Merge pull request #120 from jmchilton/fix_preprocessing_problem

Avoid loop when preprocessing fails and polling enabled.
parents 88968c99 1050bae6
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