<@ULVA73B9P> I use the retry decorator for a task....
# ask-marvin
i
@Marvin I use the retry decorator for a task. Is a retry operation counts as an additional task?
m
The retry operation in Prefect does not count as an additional task; rather, it is a continuation of the same task attempting to re-run based on the retry policy specified. When a task is retried, it does not count as a new task, but it is considered a new task run of the same task. The documentation does not explicitly state that a retry counts as an additional task, implying that it is treated as part of the existing task execution process.
n
a retry will not create an additional
TaskRun
, it will just place that task run in an
AwaitingRetry
state until it can be submitted again, but in terms of records in the task_run table, it should be the same one, whose state details are being updated