Changes between Version 13 and Version 14 of AssimilateIntro


Ignore:
Timestamp:
Oct 24, 2014, 2:18:23 PM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AssimilateIntro

    v13 v14  
    6464'''script_assimilator''' takes a command-line argument
    6565
    66  --script filename:: name of script to handle a completed job
     66 --script "filename arg1 ... argn" :: script to handle a completed job
    6767
    68 The script is called as
     68'''arg1 ... argn''' represent cmdline args to be passed to the script
     69for successful workunits.
     70The options are:
     71 '''files''' ::       list of output files of the job's canonical result
     72 '''wu_id''' ::       workunit ID
     73 '''result_id''' ::   ID of the canonical result
     74 '''runtime''' ::     runtime of the canonical result, in seconds
     75
     76If no args are specified, the script is invoked as
    6977{{{
    70 script --wu_name X f1 ... fn
     78scriptname wu_id files
    7179}}}
    72 to handle a successful job, where X is the workunit name
    73 and f1 ... fn are the output files of the canonical result,
    74 or as
     80
     81If the workunit has no canonical result (i.e. it failed)
     82the script is invoked as
    7583{{{
    76 script --wu_name X --error N
     84scriptname --error N wu_id
    7785}}}
    78 to handle an error job, were N is an integer encoding the error conditions
    79 (see WU_ERROR_* in html/inc/common_defs.inc).
     86where N is an integer encoding the reasons for the job's failure
     87(see WU_ERROR_* in html/inc/common_defs.inc)
    8088
    8189The script must be put in your project's bin/ directory.