From 1f15900b6fcb3bf19dfc718a0119cc7e447cbc8a Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 28 Jun 2019 13:38:41 -0700 Subject: [PATCH] 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. --- cutter/cutter/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cutter/cutter/main.py b/cutter/cutter/main.py index e07fa31..37a2d49 100644 --- a/cutter/cutter/main.py +++ b/cutter/cutter/main.py @@ -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)