The example for custom states show that metadata can be stored: http://docs.celeryproject.org/en/latest/userguide/tasks.html#custom-states
Which API can I use to retrieve the metadata associated with a result?
The docs don't make it clear how to get the metadata from the result. Use AsyncResult.info.
>>> job = AsyncResult(job_id)
>>> print(job.info)
{'current': 2, 'total': 100}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With