Join Slack
Powered by
hey all, if I have a task with max_retries set, is...
# ask-community
t
Tsang Yong
03/04/2020, 5:12 PM
hey all, if I have a task with max_retries set, is there some variables I can access that represents the current number of retries?
c
Chris White
03/04/2020, 5:14 PM
Hi
@Tsang Yong
- yup, you can find that information by accessing
prefect.context.task_run_count
. More info on other information available in context can be found here:
https://docs.prefect.io/api/latest/utilities/context.html
Open in Slack
Previous
Next