About 964,000 results
Open links in new tab
  1. Retrieve task result by id in Celery - Stack Overflow

    Jun 10, 2015 · I am trying to retreive the result of a task which has completed. This works from proj.tasks import add res = add.delay(3,4) res.get() 7 res.status 'SUCCESS' res.id '0d4b36e3 …

  2. python - Celery - Get task id for current task - Stack Overflow

    Since Celery 2.2.0, information related to the currently executed task is saved to task.request (it's called «the context»). So you should get task id from this context (not from keyword …

  3. celery.resultCelery 5.5.2 documentation

    To get access to the result object for a particular id you’ll have to generate an index first: index = {r.id: r for r in gres.results.values()} Or you can create new result objects on the fly: result = …

  4. python - Celery - how to get task name by task id? - Stack Overflow

    Sep 15, 2020 · For anyone wondering: You can solve this by enabling result_extended = True in your celery config. Then: Is result.name still None after result_extended = True? You have to …

  5. Python Celery – How to Get a Task Result Object by ID?

    Mar 17, 2021 · Each Celery Task object comes with an associated Task.request object. A Task Request contains information and state related to the currently executing task. You can access …

  6. TasksCelery 5.5.2 documentation

    on_success (self, retval, task_id, args, kwargs) ¶ Run by the worker if the task executes successfully. Parameters: retval – The return value of the task. task_id – Unique id of the …

  7. How to query task by id in celery - PythonKitchen

    Aug 15, 2021 · Using celery 5.1.2 you can get the task id by the following code snippet: from celery import current_app as celery_app # in your function: …

  8. Python 通过 task_idCelery 中获取任务结果对象 - Deepinout

    一旦任务被执行,我们可以通过 task_id 检索任务结果对象。 要检索任务结果对象,我们可以使用 AsyncResult 类。 下面是一个示例: 在以上示例中, task_id 是任务的唯一标识符。 接下来, …

  9. python - Getting task_id inside a Celery task - Stack Overflow

    Sep 18, 2013 · To obtain the value of task_id you first have to create an instance of that class, afterwards accessing async_result_instance.task_id will return you the real id. In your updated …

  10. Python 3 Programming: Retrieving Task ID for Current Task in Celery

    To retrieve the task ID for the current task being executed in Celery, you can make use of the current_task() function provided by Celery. This function returns an instance of the Task class, …

  11. Some results have been removed
Refresh