forked from aws-deadline/deadline-cloud-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconda_queue_env_improved_caching.yaml
More file actions
64 lines (59 loc) · 2.07 KB
/
Copy pathconda_queue_env_improved_caching.yaml
File metadata and controls
64 lines (59 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
specificationVersion: "environment-2023-09"
parameterDefinitions:
- name: CondaPackages
type: STRING
description: >
This is a space-separated list of Conda package match specifications to
install for the job. E.g. "blender=4.3" for a job that renders frames in
Blender 4.3.
default: ""
userInterface:
control: LINE_EDIT
label: Conda Packages
- name: CondaChannels
type: STRING
description: >
This is a space-separated list of Conda channels from which to install
packages. Deadline Cloud service-managed fleet packages are installed from the
"deadline-cloud" channel that is configured by Deadline Cloud.
Add "conda-forge" to get packages from the https://conda-forge.org/
community, and "defaults" to get packages from Anaconda Inc (make sure
your usage complies with https://legal.anaconda.com/policies).
default: "deadline-cloud"
userInterface:
control: LINE_EDIT
label: Conda Channels
- name: ChannelPriority
type: STRING
description: >
Choose between "strict" and "disabled" channel priority.
With strict channel priority, packages in lower priority channels are not considered
if a package with the same name appears in a higher priority channel.
With channel priority disabled, package version takes precedence, and the
configured priority of channels is used only to break ties.
(see https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html)
default: "strict"
allowedValues: ["strict", "disabled"]
userInterface:
control: DROPDOWN_LIST
label: Conda Channel Priority
environment:
name: Conda
script:
actions:
onEnter:
command: "conda-queue-env-enter"
args:
- "--packages"
- "{{Param.CondaPackages}}"
- "--channels"
- "{{Param.CondaChannels}}"
- "--channel-priority"
- "{{Param.ChannelPriority}}"
- "--persist-envs-hashed"
- "~/.persisted_envs"
onExit:
command: "conda-queue-env-exit"
args:
- "--persist-envs-hashed"
- "~/.persisted_envs"