I would like to be able to abort a task that starts from the celery queue (using rabbitMQ). I am invoking a task with
task_id = AsyncBoot.apply_async(args=[name], name=name, connect_timeout=3)
where AsyncBoot is a given task.
I can get the task id (assuming it's a long string returned by apply_async ) and store it in the database, but I'm not sure how to call the interrupt method. I see how to make abortable methods with the Abortable task class, but if I only have a line with the task ID, how can I call aabort () in the task? Thanks.
python django celery rabbitmq celery-task
Anon
source share