#!/bin/sh -e SIMDIR="${SIMDIR-/tmp/sim-run}" echo "Creating JobServ simulation under $SIMDIR" mkdir $SIMDIR cd $SIMDIR cat >rundef.json <\\\\d+) of (?P\\\\d+)" }, "script": "#!/bin/sh -ex\\nsleep 10s\\necho \\"NOTE: Running task 1 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 2 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 3 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 4 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 5 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 6 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 7 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 8 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 9 of 12\\"\\nsleep 10s\\necho \\"NOTE: Running task 10 of 12\\"\\n", "secrets": { "githubtok": "TODO", "webhook-key": "TODO", "milosz": "TODO" } } EIEIO wget -O runner http://api:8000/runner PYTHONPATH=./runner python3 -m jobserv_runner.simulator -w `pwd` rundef.json