dont set task_id, only create poster if timeline exists, do not update poster in update_imdb
This commit is contained in:
parent
af3625617d
commit
1f4d6e546f
5 changed files with 30 additions and 24 deletions
|
|
@ -80,8 +80,7 @@ def update(request):
|
|||
if 'files' in data:
|
||||
#update files info async, this takes to long otherwise
|
||||
#FIXME: how can client know if update is done? possibly with taksStatus?
|
||||
task_id = '_'.join(['update', user.username, data['volume']])
|
||||
t = tasks.update_files.apply_async(args=[user.username, data['volume'], data['files']], task_id=task_id)
|
||||
t = tasks.update_files.delay(user.username, data['volume'], data['files'])
|
||||
response['data']['taskId'] = t.task_id
|
||||
|
||||
user_profile = user.get_profile()
|
||||
|
|
@ -189,8 +188,7 @@ def firefogg_upload(request):
|
|||
f.save()
|
||||
#FIXME: this fails badly if rabbitmq goes down
|
||||
try:
|
||||
taks_id = 'update_streams_%s' % f.item.itemId
|
||||
t = item.tasks.update_streams.apply_async(args=[f.item.itemId], task_id=task_id)
|
||||
t = item.tasks.update_streams.delay((f.item.itemId))
|
||||
data['resultUrl'] = t.task_id
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue