Quantcast
Channel: Django Celery results set task id to something human readable? - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by AlfonsoAG for Django Celery results set task id to something human...

In my case , I tried the next line of code and it worked like charm>>> my_celery_task.apply_async((2, 2), task_id='human-readable')>>> result =...

View Article


Answer by Oluwafemi Sule for Django Celery results set task id to something...

Implement a custom result backend that overwrites _store_result to decide what is saved as result to the database.Depending on which backend you're using find the related class in celery.backends.This...

View Article

Answer by blakev for Django Celery results set task id to something human...

The easy answer is No. The task_id attribute is generated automatically. If you follow the code backwards the core function that generates ID's is in kombu.utils.uuid.uuid(..), which interestingly is...

View Article

Answer by glenfant for Django Celery results set task id to something human...

Try:@app.task(name="periodic_test")def test(a, b): return a+bThis may help to find the task status in the UI, but Celery always needs a unique id for each task execution.

View Article

Image may be NSFW.
Clik here to view.

Django Celery results set task id to something human readable?

After many days I have a working celery and celery beat task list, and the results are stored using django_celery_results. However when I look at the table record, it hasn't got any useful information...

View Article

Browsing all 5 articles
Browse latest View live