Question 28
Read the following code carefully and answer the given subquestions. tasks.py:
Called from a view/script:
Checked immediately, right after delay() — worker hasn't processed it yet:
Called separately, after waiting for the worker to finish the task:
What do print(check.status) (checked immediately) and the later print(check.get(timeout=5)) (checked after the worker finishes) output?
"PENDING" and 10
"SUCCESS" and 10
10 and "SUCCESS"
"PENDING" and "SUCCESS"