The script assimilator
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 "filename arg1 ... argn"
script to handle a completed job
arg1 ... argn represent cmdline args to be passed to the script for successful workunits. The options are:
files
list of output files of the job's canonical result
wu_id
workunit ID
result_id
ID of the canonical result
runtime
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.
All-Python assimilator framework
A framework for all-Python assimilators can be found in sched/assimilator.py. See the comments for instructions.