Project

General

Profile

Actions

Crunch runner » History » Revision 2

« Previous | Revision 2/5 (diff) | Next »
Peter Amstutz, 10/22/2015 03:29 PM


Crunch runner

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.

Example job invocation:

{
  "script": "crunchrunner",
  "script_parameters": {
    "tasks": [
       {
          "command": ["ls", "-l", "/"]
       }
     ]
   }
}

If there is a single task declared, it runs in task 0. If multiple tasks are declared, they are scheduled as job_tasks.

Updated by Peter Amstutz over 8 years ago · 2 revisions