Hi there. Is it possible to tag a task run during ...
# ask-community
m
Hi there. Is it possible to tag a task run during runtime? My use case is I have soft failures (i.e. log an error, but don't raise one) on the tasks and I want to tag the task run that it had a soft failure. Is this possible?
w
m
I did, but that thread's about tagging a flow run, not a task run. Any ideas?
d
Hey Mark! Depending on what you want to do with the soft failure, I might suggest emitting an event instead? You can include the
task_run_id
in the related resources for the event and then you'll have a timeline of failures with links to the various task runs that experienced them.