Skip to content
Snippets Groups Projects
Commit 8a661658 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #11385: do not retry when sip is invalid. users should fix the sip, and then reingest.

parent cf2eae95
No related branches found
No related tags found
No related merge requests found
......@@ -459,11 +459,11 @@ class IngestJobManager:
next_retry_attempt = current_retry_attempt + 1
if next_retry_attempt < self.__max_num_retries:
if message and 'not on disk' in message:
if message and 'not on disk' in message.lower():
logger.info('job %s transfer failed because source data was not on disk, not retrying anymore', job_id)
new_status = JobFailed
elif message and 'invalid SIP' in message:
logger.info('job %s transfer failed because the SIP is invalid, not retrying anymore', job_id)
elif message and 'invalid sip' in message.lower():
logger.info('job %s transfer failed because the SIP is invalid, not retrying anymore, please fix SIP and resubmit job to ingest.', job_id)
new_status = JobFailed
else:
new_status = JobRetry
......
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