<@ULVA73B9P> within a flow with retries option, ho...
# ask-marvin
p
@Marvin within a flow with retries option, how can I get access to run_count?
m
In Prefect 2.x, retries for both tasks and flows can be configured using
retries
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?