How to elegantly use result_backend.set_progress ?? #463
Unanswered
KitStarLee
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
“
@broker.task
async def heavy_task(key: str, val: str, context: Context = TaskiqDepends()) -> str:
”
How to obtain the current task_id in the above code ?
Then set the progress using context.broker.result_backend.set_progress().
Because get_ progress returns None by default。
Beta Was this translation helpful? Give feedback.
All reactions