Can I confirm that `@retry` (via argo & k8s) s...
# ask-metaflow
c
Can I confirm that
@retry
(via argo & k8s) should restart a step correctly if the pod is provisioned on a spot instance, and that instance is interrupted/reclaimed?
1
1
And a follow-up: is there any mechanism by which we can tell (either within the step runtime, or in other lifecycle hooks) the difference between a code exception and a interruption? If we wanted to retry on one but not the other
v
yes - @retry retries interrupted spot instances
s
to avoid retrying errors in user code, see this thread for an example https://outerbounds-community.slack.com/archives/C02116BBNTU/p1674195227085449
c
Thanks Ville!
👍 1