-
Notifications
You must be signed in to change notification settings - Fork 1
/
template_process.yaml
66 lines (62 loc) · 2.23 KB
/
template_process.yaml
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
65
66
info:
# version should follow semantic versioning `MAJOR.MINOR.PATCH` for details: https://semver.org/
version: '0.0.1'
# UUID for this process, it should follow camelCase format
id: aepGrid
# human friendly name of the process
title: AEP Grid
# describe what this process does in a line or two
description: Creates an Annual Exceedance Probability (AEP) grid
# available job control options, must be from [sync-execute, async-execute]
jobControlOptions:
- async-execute
# types of outputs that this process generate, must be from [reference, value, ]
outputTransmission:
- reference
# host are container execution platforms such as, 'local' or 'aws-batch'
# fields that are not related to a particular host can be omitted, for example jobDefinition, jobQueue not required for 'local' host
host:
type: "aws-batch"
jobDefinition: process-sandbox:2
jobQueue: micro-test
container:
# full uri of the image, it should be exactly same as what is needed in docker pull command
# image should be empty when image is defined somewhere else, for example in jobDefinition
# in that case the, the API will fetch this information at the startup and overwrite image information
image: ""
# entrypoint for the container
command:
- python
- aep_blocks.py
# max resources this container can use
# should be left empty for cloud processes where this information is defined in cloud job configuration
# in that case the, the API will fetch this information at the startup and overwrite these properties
maxResources:
# cpus in fraction for example, 0.5 would mean use 0.5 CPUs
cpus: 0.1
# memory in megabytes
memory: 1024
# env variable keys that need to be passed to container, for AWS_ACCESS_KEY_ID etc
# should be left empty for cloud processes and defined in jobDefinition
envVars:
- variable1
- variable2
# inputs user must provide
inputs:
- id: tile
title: tile
input:
literalDataDomain:
dataType: string
valueDefinition:
anyValue: true
minOccurs: 1
maxOccurs: 1
# outputs user should expect after successful run
outputs:
- id: aepGrid
title: aepGrid
inputId: aepGridDestination
output:
transmissionMode:
- reference