The default snakemake jobscript looks like this:
#!/bin/sh
# properties = {properties}
{exec_job}
I have modified it a bit to print some useful information:
#!/bin/sh
# properties = {properties}
hostname=`hostname`
echo "Running on $hostname"
startTime=`date`
echo "Start time: $startTime"
{exec_job}
endTime=`date`
echo "End time: $endTime"
and I pass it through the --jobscript
option when executing a workflow.
I'd like to add another piece of information - how many CPUs are used. How can I access this (and other) properties of the job? Maybe it has to do with the cryptic # properties = {properties}
line? but how exactly are the properties used?
Would appreciate any hints, as the documentation is pretty vague on this.
Thanks!