argoproj-labs / hera

Hera is an Argo Python SDK. Hera aims to make construction and submission of various Argo Project resources easy and accessible to everyone! Hera abstracts away low-level setup details while still maintaining a consistent vocabulary with Argo. ⭐️ Remember to star!
https://hera.rtfd.io
Apache License 2.0
550 stars 105 forks source link

Add IOMixin to Suspend for easier duration configuration #1108

Closed elliotgunton closed 2 months ago

elliotgunton commented 2 months ago

Pull Request Checklist

Description of PR This PR adds the IOMixin to Suspend meaning the example for configurable suspend can be simplified and avoid use of the generated models, but it still requires using the Argo template string syntax due to it being a basic configurable template.

I had a thought to add a decorator for HEP0001 but it faces the same problem as the advanced container example - there's no sane way to set the duration to the input parameter value without "running" the function to do the template config setup, therefore I've fixed the issue for the old syntax for now.