hey all, if I have a task with max_retries set, is...
# ask-community
t
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
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