Hacker News new | ask | show | jobs
by flakes 593 days ago
Depends how it's implemented. It seems very similar to Apache Airflow in API, and similar to the many Argo Workflows Python wrappers.

This pattern when implemented with context vars in the context managers is a pretty nice way to reduce the boilerplate, without the downsides of traditional globals. The state can be safely contained to just the with block.

Usually these types of APIs also allow usage without it, using the context vars only to populate arguments not explicitly provided.