Martim Lobao

01/19/2022, 11:33 PM
it is possible for a task to get its own task run id? say if I wanted each task to send a notification with its task run id for example, would this be possible? and do task run ids persist across retries of the same flow run? (if a flow fails at a task and i restart the flow, will that task have the same task run id as before?)

Kevin Kho

01/19/2022, 11:43 PM
Yes you can do this by pulling it from context. Yes it persists across retries because the restart just moved failed stuff to a scheduled state.

Martim Lobao

01/20/2022, 1:16 AM
thanks Kevin, this is exactly what i was looking for!