reversed task list order
This commit is contained in:
@@ -224,10 +224,6 @@ def myqueue(queue,function,*args,**kwargs):
|
|||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
kwargs['debug'] = True
|
kwargs['debug'] = True
|
||||||
|
|
||||||
print 'myqueue'
|
|
||||||
print args
|
|
||||||
print kwargs
|
|
||||||
|
|
||||||
job = function.delay(*args,**kwargs)
|
job = function.delay(*args,**kwargs)
|
||||||
else:
|
else:
|
||||||
job_id = str(uuid.uuid4())
|
job_id = str(uuid.uuid4())
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ def get_stored_tasks_status(request):
|
|||||||
taskids = []
|
taskids = []
|
||||||
|
|
||||||
taskstatus = []
|
taskstatus = []
|
||||||
for id,func_name in taskids:
|
for id,func_name in reversed(taskids):
|
||||||
progress = 0
|
progress = 0
|
||||||
cached_progress = cache.get(id)
|
cached_progress = cache.get(id)
|
||||||
finished = get_job_status(id)['finished']
|
finished = get_job_status(id)['finished']
|
||||||
|
|||||||
Reference in New Issue
Block a user