it is possible for a task to get its own task run ...
# ask-community
m
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?)
k
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.
m
thanks Kevin, this is exactly what i was looking for!