Is there a way to get the current task restart cou...
# flyte-support
f
Is there a way to get the current task restart count? Couldn't find it from current_context()
t
retry count you mean?
that is indeed in here: https://github.com/flyteorg/flyte/blob/5b0d78715c31824f0af156c92fa4fe8971a412a5/fl[…]eplugins/go/tasks/pluginmachinery/flytek8s/k8s_resource_adds.go but it’s not explicitly pulled by flytekit. I don’t think we have any plans to change/remove that, but just keep in mind it’s not part of any official api or anything
f
@thankful-minister-83577 Is it FLYTE_ATTEMPT_NUMBER?
t
yes
👍 1