How to add a celery task id as a child for the currently running task and finish it? #8369
mohsen-eng74
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Could anyone help me to add a celery task id as a child for the currently running task and finish it?
I've tried
self.add_trail
,self.update_state
, andself.request.children.append
in the currently running task but none of them works either in task metadata stored in the result backed nor in the task detail section of the flower monitoring tool.I'm looking for a way to make a task singleton without changing the logic of how celery internally works by appending the parent task id into the currently running task and finishing it.
Regards,
Mohsen.
Beta Was this translation helpful? Give feedback.
All reactions