Cartwright 2012 Fall
Computer Sciences 368 Scripting for CHTC
Day 13: Scripting Workflows II DAGMan
1
Day 13: Scripting Workflows II DAGMan 2012 Fall Cartwright 1 - - PowerPoint PPT Presentation
Computer Sciences 368 Scripting for CHTC Day 13: Scripting Workflows II DAGMan 2012 Fall Cartwright 1 Computer Sciences 368 Scripting for CHTC Homework Review 2012 Fall Cartwright 2 Computer Sciences 368 Scripting for CHTC Advanced
Cartwright 2012 Fall
1
Cartwright 2012 Fall
2
Cartwright 2012 Fall
3
Cartwright 2012 Fall
4
Cartwright 2012 Fall
5
cd directory condor_submit submit-file
Cartwright 2012 Fall
6
Cartwright 2012 Fall
7
Cartwright 2012 Fall
8
Cartwright 2012 Fall
9
Cartwright 2012 Fall
10
Cartwright 2012 Fall
11
Cartwright 2012 Fall
12
Cartwright 2012 Fall
13
def psub(text): ... # add text to submit file psub(dag_submit_header) n = 0 for t in product(parameter_1, parameter_2): n += 1 psub('JOB N%d node.sub DIR node-%d' % (n, n)) psub('RETRY N%d 3 UNLESS-EXIT 1' % (n)) if t[0] < 1.0: psub('PRIORITY N%d 10' % (n)) args = '%d %s' % (n, t[1]) psub('SCRIPT PRE N%d pre.py %s' % (n, args)) psub('PARENT Start CHILD N%d' % (n)) write_node_dir(sources, n, t) psub(dag_submit_footer)
Cartwright 2012 Fall
14
# sources: dict from filename to contents def prepare_node_dir(sources, node, params): node_dir = 'node-%d' % (node)
# write node submit file, incl. job arguments node_sub = os.path.join(node_dir, 'node.sub') write_node_submit(node_sub, params) for filename in sources: text = sources[filename] target = os.path.join(dirname, filename) write_template(text, target, params)
Cartwright 2012 Fall
15
Cartwright 2012 Fall
16
Cartwright 2012 Fall
17
Cartwright 2012 Fall
18
X Z
Cartwright 2012 Fall
19
Cartwright 2012 Fall
20
Cartwright 2012 Fall
21
Cartwright 2012 Fall
22
Cartwright 2012 Fall
23
Cartwright 2012 Fall
24
Cartwright 2012 Fall
25
Cartwright 2012 Fall
26
Cartwright 2012 Fall
27
Cartwright 2012 Fall
28
Cartwright 2012 Fall
29
Cartwright 2012 Fall
30
Cartwright 2012 Fall
31
Cartwright 2012 Fall
32