-
Notifications
You must be signed in to change notification settings - Fork 3
/
cromwell_shifter.conf
105 lines (91 loc) · 2.15 KB
/
cromwell_shifter.conf
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
webservice
{
port = 50010
}
system
{
abort-jobs-on-terminate = false
graceful-server-shutdown = true
workflow-restart = true
max-concurrent-workflows = 100000
max-workflow-launch-count = 100000
new-workflow-poll-rate = 1
number-of-workflow-log-copy-workers = 20
number-of-cache-read-workers = 50
}
workflow-options
{
workflow-log-dir: "cromwell-workflow-logs"
workflow-log-temporary: false
workflow-failure-mode: "ContinueWhilePossible"
default
{
workflow-type: WDL
workflow-type-version: "draft-2"
}
}
call-caching
{
enabled = true
invalidate-bad-cache-result = true
}
# this is required for shifter to find image from its registry.
docker {
hash-lookup {
enabled = false
}
}
backend
{
default = "Local"
providers
{
# local deployment
Local
{
actor-factory = "cromwell.backend.impl.sfs.config.ConfigBackendLifecycleActorFactory"
config
{
concurrent-job-limit = 7
run-in-background = true
#temporary-directory = "`mktemp -d \"/global/cscratch1/sd/jaws_jtm/dev/cromwell-tmp\"/tmp.XXXXXX`"
# The list of possible runtime custom attributes.
# TODO: can override inside your WDL.!
runtime-attributes = """
String? docker
"""
# Submit string when there is no "docker" runtime attribute.
submit = "/usr/bin/env bash ${script}"
submit-docker = """
LOOKUP=$(shifterimg lookup ${docker})
if [[ ! $LOOKUP ]]; then
shifterimg pull ${docker}
fi
shifter --image=${docker} \
-V /global/dna/shared/databases/jaws/refdata:/refdata \
${job_shell} ${script}
"""
dockerRoot = /cromwell-executions
filesystems
{
local
{
localization: [ "soft-link", "copy" ]
caching {
duplication-strategy: [ "soft-link", "file" ]
hashing-strategy: "file"
}
}
}
default-runtime-attributes
{
failOnStderr: false
continueOnReturnCode: 0
}
}
}
# slurm
slurm{
}
}
}