Hi, is it possible to set these config vars from m...
# ask-metaflow
f
Hi, is it possible to set these config vars from metaflow for argo worfklow as mentioned here
Copy code
spec:
  # must complete in 8h (28,800 seconds)
  activeDeadlineSeconds: 28800
  # keep workflows for 1d (86,400 seconds)
  ttlStrategy:
    secondsAfterCompletion: 86400
  # delete all pods as soon as they complete
  podGC:
    strategy: OnPodCompletion
2
b
Currently it is not possible to configure these, but discussions on introducing the feature have been had. There's an open issue on this along with some thoughts in the now closed PR. Feel free to chime in 🙂 For the time being, would the approach mentioned in the PR work for you as well, where the TTL would be instead set through workflow defaults on the Argo Workflow controller? Or is there a specific case where controlling the TTL is required on a per-flow basis?
as a sidenote, I was also looking into setting pod level TTL through argo workflows, but this didn't seem possible at the time. I must've completely missed the
podGC
part, will have to look into this if it would serve the purpose of cleaning up pods while retaining workflows in order to preserve some history of flow execution.
f
Thanks! I will look into setting up using workflow controller. That should work for now. We don't really need per workflow config.