Is there a way to get the current task restart cou...
# ask-the-community
b
Is there a way to get the current task restart count? Couldn't find it from current_context()
y
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
b
@Yee Is it FLYTE_ATTEMPT_NUMBER?
y
yes