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
|
template_string = '''
universe = vanilla
should_transfer_files = YES
when_to_transfer_output = ON_EXIT_OR_EVICT
Transfer_Executable = false
transfer_input_files = ${input_files}
machine_count = ${nodes}
output = ${submit_script_dir}/${job_name}.stdout
error = ${submit_script_dir}/${job_name}.stderr
executable = /bin/bash
arguments = ${job_script}
requirements = ${requirements}
+projectname = ${project}
leave_in_queue = TRUE
environment = "${environment}"
${scheduler_options}
queue
'''
# for later,
# if we want to remove on preemption, this might work:
# PERIODIC_REMOVE = (NumJobstarts > 1)
# or if the pilot can trap signals, then we can send a special exit code on
# sigterm/sigkill and remove that way. but then we still need to be careful in
# cases where the worker dies, for example-- no signal is sent
|