Skip to content

Look into adding LocalCluster to run jobs on local computer #8

@coleslaw481

Description

@coleslaw481

Perhaps this class should generate the following script named runjobs.local:

#!/bin/sh

if [ $# -ne 2 ] ; then
echo "$0 "
echo ""
echo "Runs sequence of CHM tasks"
echo ""
echo "Ex: $0 1 50"
exit 1
fi

start=$1
end=$2

for Y in seq $start $end ; do
outfile="/fakechmjob/gordon2/chmrun/stdout/${Y}.out"
echo "HOST: $HOSTNAME" > $outfile
echo "DATE: date" >> $outfile
echo "TASKID: $Y" >> $outfile
/usr/bin/time -p /usr/bin/chmrunner.py $Y /fakechmjob/gordon2 --scratchdir /fakechmjob/gordon2/chmrun/tmp --log DEBUG >> $outfile 2>&1

exitcode=$?
echo "chmrunner.py exited with code: $exitcode" >> $outfile
done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions