run syc or async
This commit is contained in:
parent
111a81ae26
commit
28242afac8
|
@ -100,7 +100,10 @@ def start_task(task_id: int):
|
|||
add_to_group_task.delay(task_id=task_id)
|
||||
|
||||
case 'parse':
|
||||
if task.file:
|
||||
parse_users_task.delay(task_id=task_id)
|
||||
else:
|
||||
parse_users_task.run(task_id=task_id)
|
||||
|
||||
return '', 204
|
||||
|
||||
|
|
Loading…
Reference in New Issue