From e62c7d30f2368da185c597b6e9700209e9e2ebe7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 4 Jun 2014 09:53:39 +0300 Subject: [PATCH] reset failed if encoding again --- pandora/archive/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 216c3d8c..1a91c348 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -87,7 +87,7 @@ def process_stream(fileId): ''' file = models.File.objects.get(id=fileId) streams = file.streams.filter(source=None) - models.File.objects.filter(id=fileId).update(encoding=True, queued=False) + models.File.objects.filter(id=fileId).update(encoding=True, queued=False, failed=False) if streams.count() > 0: stream = streams[0] stream.make_timeline() @@ -108,7 +108,7 @@ def extract_stream(fileId): ''' extract stream from direct upload ''' - models.File.objects.filter(id=fileId).update(encoding=True, queued=False) + models.File.objects.filter(id=fileId).update(encoding=True, queued=False, failed=False) file = models.File.objects.get(id=fileId) if file.data: config = settings.CONFIG['video']