HPC filter chain utility
In our work with HPC we've been fustrated by the single filter hook.
So we wrote a pair of little utilities that allow multiple filters to be chained.
Usage
Download the two programs below and use HPC Cluster Manager to point to them.
Download filters.ini into the same folder as the programs and customise with your filter chains.
Synopsis
{program-name} JOBFILE
Where {program-name} is either:
- activation-filters.exe
runs activation filters. This mode handles filter error codes > 4 as if they returned 2. - submission-filters.exe
runs submission filters
Each program runs the job specified by JOBFILE through the chain of filters in filters.ini The first filter to reject/fail the job stops the filter-chain from processing.
Returns the highest exit code of all executed filters in the filter chain, or zero on error.
Note:In the case of an error in the filter chain processing the return value is deliberately zero so that jobs are submitted/started. This is on the basis that it's better to have too many jobs queued/activated than have jobs held up.
Report bugs to bugs@akroyd-wallis.co.uk.