couler-proj / couler

Unified Interface for Constructing and Managing Workflows on different workflow engines, such as Argo Workflows, Tekton Pipelines, and Apache Airflow.

Home Page:https://couler-proj.github.io/couler/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting a default `Submitter`

moshewe opened this issue · comments

Summary

Currently, every time we submit a workflow we call couler.run(submitter). I think that setting a default submitter and also exposing a getter/setter for it would make code more readable and is more intuitive, as it's not probable the same process will use multiple Submitters. The original couler.run(submitter) will remain.

Use Cases

When setting up a Python program that launches workflows, assuming it doesn't switch submitters a lot.


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.

Sounds good. Feel free to submit a PR.

merged.