Pooyan
12/21/2023, 11:45 PMMarvin
12/21/2023, 11:45 PMretries and retry_delay_seconds parameters. When a flow is configured with a certain number of retries, the tasks within the flow will retry up to their individual task retry limit for each flow run. However, the available information does not include specific details about accessing run_count within a flow.
Since documentation doesn't provide an immediate answer to your query, to get information on how to access run_count during flow retries, you might need to look at Prefect's API documentation or source code, or ask in the Prefect community for help.
In practice, run_count information might be available through the Prefect context or state objects, which include different pieces of metadata about current run, but without additional context or specific API documentation, I can't provide detailed instructions. If Prefect's API includes this feature, you would likely access it via the context in your flow or task code.
Would you like me to try and find more specific information regarding accessing run_count in Prefect 2.x documentation or issues?