-
Notifications
You must be signed in to change notification settings - Fork 147
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
Task template #70
Comments
Initial design of the template: ---
api_version: v1
kind: taskTemplate
metadata:
name: template1234
tag: example-tag
spec:
kernel:
environ:
MYCONFIG: XXX
git:
branch: '19.09'
commit: 10daee9e328876d75e6d0fa4998d4456711730db
repository: https://github.com/lablup/backend.ai-agent
destinationDir: /home/work/baiagent
image: python:3.6-ubuntu18.04
run:
bootstrap: IyEvYmluL3NoCmNkICRIT01FCm1rZGlyIHRtcDEKZWNobyAiMTIzNDUiID4gdG1wMS90ZXN0LnR4dAo=
resources:
cpu: '2'
mem: 4g
mounts:
hostpath-test: /home/work/hostDesktop
test-vfolder:
sessionType: interactive
Value of |
I first thought to store the task template as a database record with concrete columns, but it would be better to store just the YAML as you suggested for forward compatibility. |
* Corresponds to lablup/backend.ai#70 and lablup/backend.ai-manager#213 * New "SessionTemplate" functional SDK APIs and "backend.ai sesstpl" command set. * Documentation including CLI examples Co-authored-by: Joongi Kim <me@daybreaker.info>
We're finally done, but later I will revisit this to test more thoroughly. |
Let's make the parameter sets for batch sessions (#42) to be reusable and referrable by task graph API (#43).
A template should include:
A template can be used in the following contexts:
/home/work/input
and/home/work/output
directories which are auto-created vfolders by the smanager for the input/output connection between different stages.┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: