Join Slack
Powered by
Is there a way to get the current task restart cou...
# flyte-support
f
fierce-oil-47448
07/01/2024, 7:31 PM
Is there a way to get the current task restart count? Couldn't find it from current_context()
t
thankful-minister-83577
07/01/2024, 9:05 PM
retry count you mean?
thankful-minister-83577
07/01/2024, 9:06 PM
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
fierce-oil-47448
07/01/2024, 11:49 PM
@thankful-minister-83577
Is it FLYTE_ATTEMPT_NUMBER?
t
thankful-minister-83577
07/01/2024, 11:52 PM
yes
👍 1
3
Views
Open in Slack
Previous
Next