Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Auto create not exist environment config when submit workflow #57

Open
jieguangzhou opened this issue Dec 21, 2022 · 1 comment

Comments

@jieguangzhou
Copy link
Member

jieguangzhou commented Dec 21, 2022

environment = Environment(name="python-numpy", config="export PYTHON_HOME=/xxx/xxx/python3")
task = Python(name="123", definition="import numpy as np", environment_name=environment)

if python-numpy exist, update the environment, if not create a new environment.

@zhongjiajie
Copy link
Member

The environment worker group is required, I do know whether is good to create environment in python code or in CLI, we used to create user, tenant, queue in python code, but it is a bad idea because, when some workflow define change the tenant and user, will cause some permission error, so in #40 I try to create user, tenant, queue via CLI, and workflow define just use username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants