Project

General

Profile

Crunch runner » History » Version 2

Peter Amstutz, 10/22/2015 03:29 PM

1 1 Peter Amstutz
h1. Crunch runner
2
3
Crunch runner is a Go program designed to be injected into a Docker container used to bootstrap running some other command line program, upload the results, and communicate task success or failure to the API server.  It is similar to the Python crunch script run-command, but because it is a compiled Go binary, it has a much lighter footprint than run-command (which requires the Arvados Python SDK and all its dependencies) and so can run in a wider variety of container environments.
4 2 Peter Amstutz
5
Example job invocation:
6
7
<pre>
8
{
9
  "script": "crunchrunner",
10
  "script_parameters": {
11
    "tasks": [
12
       {
13
          "command": ["ls", "-l", "/"]
14
       }
15
     ]
16
   }
17
}
18
</pre>
19
20
If there is a single task declared, it runs in task 0.  If multiple tasks are declared, they are scheduled as job_tasks.