stream processing
This commit is contained in:
parent
910b1102d2
commit
7168617dd7
6 changed files with 17 additions and 17 deletions
|
|
@ -89,3 +89,12 @@ def update_files(user, volume, files):
|
|||
#FIXME: can this have any bad consequences? i.e. on the selction of used item files.
|
||||
models.Instance.objects.filter(volume=volume).exclude(file__oshash__in=all_files).delete()
|
||||
|
||||
@task(queue="encoding")
|
||||
def process_stream(fileId):
|
||||
file = models.Stream.objects.get(id=fileId)
|
||||
streams = file.streams.filter(source=None)
|
||||
if streams.count() >0:
|
||||
stream = streams[0]
|
||||
stream.make_timeline()
|
||||
stream.extract_derivatives()
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue