When tasks are retried, they create another instance with the same task ID. These are distinguished by run ID. We can actually naively keep track of how many instances of each task we encounter, and use-then-increment the run ID to get correct results.
When tasks are retried, they create another instance with the same task ID. These are distinguished by run ID. We can actually naively keep track of how many instances of each task we encounter, and use-then-increment the run ID to get correct results.