Commit faef59f2 authored by Julian Rother's avatar Julian Rother
Browse files

Small fix

parent 95f0573f
......@@ -230,7 +230,8 @@ def schedule_livestream(lecture_id):
def restart_failed_complex_live_transcode(id, type, data, state, status):
@job_handler('complex_live_transcode', state='failed')
@job_handler('complex_live_transcode', state='finished')
def cleanup_after_complex_live_transcode_ended(id, type, data, state, status):
job = query('SELECT * FROM jobs WHERE id = ?', id, nlfix=False)[0]
if state == 'finished' or (state == 'failed' and job['canceled']):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment