cutter: At least for now, don't auto-retry errors

This leads to rapidly exhausting our upload limit since even a fast failed request
costs the same amount of usage quota as a 1-hour long video.
pull/66/head
Mike Lang 5 years ago committed by Christopher Usher
parent fbef4725d7
commit 1f15900b6f

@ -348,7 +348,7 @@ class Cutter(object):
# error before finalizing, assume it's a network issue / retryable.
# set back to EDITED but still set error
self.logger.exception("Retryable error when uploading job {}".format(format_job(job)))
if not set_row(state='EDITED', error="Retryable error while uploading: {}".format(ex), uploader=None):
if not set_row(state='UNEDITED', error="Retryable error while uploading: {}".format(ex), uploader=None):
raise JobConsistencyError(
"No job with id {} and uploader {} when setting error while rolling back for retryable error"
.format(job.id, self.name)

Loading…
Cancel
Save