Project

General

Profile

Crunch runner » History » Revision 2

Revision 1 (Peter Amstutz, 10/22/2015 02:42 PM) → Revision 2/5 (Peter Amstutz, 10/22/2015 03:29 PM)

h1. 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: 

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

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