cutter: Fix bug where uploader was cleared on non-retryable error

Instead of on retryable error
pull/158/head
Mike Lang 5 years ago
parent 986c9a3413
commit fde2758275

@ -426,10 +426,10 @@ class Cutter(object):
# and we set it back to UNEDITED, waiting for an editor to manually retry. # and we set it back to UNEDITED, waiting for an editor to manually retry.
if ex.retryable: if ex.retryable:
state = 'EDITED' state = 'EDITED'
kwargs = {} kwargs = {'uploader': None}
else: else:
state = 'UNEDITED' state = 'UNEDITED'
kwargs = {'uploader': None} kwargs = {}
self.logger.exception("Upload error for job {}: {}".format(format_job(job), ex)) self.logger.exception("Upload error for job {}: {}".format(format_job(job), ex))
upload_errors.labels( upload_errors.labels(
video_channel=job.video_channel, video_channel=job.video_channel,

Loading…
Cancel
Save