diff --git a/condor/launch.sh b/condor/launch.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d5a952c50ff577d23959eea7777b4db4d07d14c --- /dev/null +++ b/condor/launch.sh @@ -0,0 +1,7 @@ +#!/bin/bash +#duration=$[ ( $RANDOM % 120 ) + 1 ] +#echo $duration +#sleep $duration +git clone $1 Repository && cd Repository && git checkout $2 +echo ${@:3} +exec $3 ${@:4} diff --git a/condor/submit_file.sh b/condor/submit_file.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0d18fea62d6d883f57652d51ed901230250b4bb --- /dev/null +++ b/condor/submit_file.sh @@ -0,0 +1,36 @@ +# ---------------------------------------------------------------------------------------------------------------------- +executable = /bin/bash +# ---------------------------------------------------------------------------------------------------------------------- +universe = docker +docker_image = registry.eps.surrey.ac.uk/guillaume_docker:33437 +should_transfer_files = YES +environment = mount=/vol/vssp/SF_datasets/multiview/Human3.6M/data,/vol/research/content4all,/vol/research/NOBACKUP/CVSSP/derived +# ---------------------------------------------------------------------------------------------------------------------- +log = $ENV(PWD)/logs/$(cluster).$(process).log +output = $ENV(PWD)/logs/$(cluster).$(process).out +error = $ENV(PWD)/logs/$(cluster).$(process).err +# ---------------------------------------------------------------------------------------------------------------------- +request_CPUs = 1 +request_memory = 1G +request_disk = 1G +# ---------------------------------------------------------------------------------------------------------------------- ++CanCheckpoint = False ++JobRunTime = 72 +# ---------------------------------------------------------------------------------------------------------------------- +on_exit_hold = ExitCode != 0 +# ---------------------------------------------------------------------------------------------------------------------- +launcher = $ENV(PWD)/launch.sh +# ---------------------------------------------------------------------------------------------------------------------- +repository = /vol/research/content4all/3dhumanpose/projects/FilesystemTest +# ---------------------------------------------------------------------------------------------------------------------- +branch = HEAD +# ---------------------------------------------------------------------------------------------------------------------- +python = /vol/research/content4all/3dhumanpose/Anaconda/miniconda3/envs/ml-env/bin/python +# ---------------------------------------------------------------------------------------------------------------------- +arguments = $(launcher) $(repository) $(branch) $(python) $(args) +# ---------------------------------------------------------------------------------------------------------------------- +args = $(script) +# ---------------------------------------------------------------------------------------------------------------------- +script = test.py +# ---------------------------------------------------------------------------------------------------------------------- +queue 5000