B
B
bQ12019-09-30 17:23:55
Django
bQ1, 2019-09-30 17:23:55

celery task not running in django project?

In the console, the task is placed and completed without errors, but the task code itself is not executed. What the hell?

[2019-09-30 17:20:04,326: INFO/MainProcess] Received task: app.tasks.test[5abaa86c-35ab-46f7-a7ca-52bf4d11ad52]  
[2019-09-30 17:20:04,340: INFO/ForkPoolWorker-2] Task app.tasks.test[5abaa86c-35ab-46f7-a7ca-52bf4d11ad52] succeeded in 0.008967023342847824s: 1233

I set the task like this:
task = test.apply_async(
                args=[instance.id, int(instance.interval)],
                eta=instance.next_run)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alternativshik, 2019-09-30
@bQ1

The code is executed and even returns the result 1233

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question