All processing exceptions are now logged
All processing exceptions should now be logged, the MediaEntry marked as failed, the exception re-raised.
This commit is contained in:
parent
65a2eb6694
commit
2891b2c6d0
@ -71,6 +71,14 @@ class ProcessMedia(Task):
|
|||||||
|
|
||||||
mark_entry_failed(entry._id, exc)
|
mark_entry_failed(entry._id, exc)
|
||||||
|
|
||||||
|
except Exception as exc:
|
||||||
|
_log.error('An unhandled exception was raised while'
|
||||||
|
+ ' processing {0}'.format(
|
||||||
|
entry))
|
||||||
|
|
||||||
|
mark_entry_failed(entry._id, exc)
|
||||||
|
raise
|
||||||
|
|
||||||
def on_failure(self, exc, task_id, args, kwargs, einfo):
|
def on_failure(self, exc, task_id, args, kwargs, einfo):
|
||||||
"""
|
"""
|
||||||
If the processing failed we should mark that in the database.
|
If the processing failed we should mark that in the database.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user