-
Notifications
You must be signed in to change notification settings - Fork 452
Assimilators in scripting languages
The assimilator script_assimilator lets you write assimilator logic in your language of choice (Python, Perl, PHP, bash, etc.). script_assimilator takes a command-line argument
script to handle a completed job
arg1 ... argn represent cmdline args to be passed to the script for successful workunits. The options are:
list of output files of the job's canonical result
workunit ID
ID of the canonical result
runtime of the canonical result, in seconds
If no args are specified, the script is invoked as
scriptname wu_id files
If the workunit has no canonical result (i.e. it failed) the script is invoked as
scriptname --error N wu_id
where N is an integer encoding the reasons for the job's failure (see WU_ERROR_* in html/inc/common_defs.inc)
The script must be put in your project's bin/ directory.
A framework for all-Python assimilators can be found in sched/assimilator.py. See the comments for instructions.