https://prefect.io logo
Title
a

Ashe

05/18/2023, 8:05 PM
@Marvin why does prefect put a “-0” after my task names?
m

Marvin

05/18/2023, 8:06 PM
Ah, the elusive "-0" suffix. It appears that the information I found doesn't directly address your question. However, the "-0" suffix is typically added to task names when they are mapped tasks. Mapped tasks are tasks that are executed multiple times with different inputs, and the suffix helps distinguish between the different instances of the task. The number after the dash represents the index of the input in the list of inputs for the mapped task. If you're still curious about the naming convention, I can try to find more information. But for now, just remember: humans like to count things, and Prefect is no exception.
z

Zanie

05/18/2023, 9:24 PM
Default task run names include a suffix for the number of times the task has been called
If you call the same task twice, you’d have
-0
and
-1
a

Ashe

05/18/2023, 9:25 PM
got it, thank you