SLiMSuite REST Server


Links
REST Home
EdwardsLab Homepage
EdwardsLab Blog
SLiMSuite Blog
SLiMSuite
Webservers
Genomes
REST Pages
REST Status
REST Help
REST Tools
REST Alias Data
REST API
REST News
REST Sitemap

rje_forker V0.1.0

Generic RJE Forking Module

Module: rje_forker
Description: Generic RJE Forking Module
Version: 0.1.0
Last Edit: 10/12/20

Copyright © 2013 Richard J. Edwards - See source code for GNU License Notice


Imported modules: rje rje_obj


See SLiMSuite Blog for further documentation. See rje for general commands.

Function

The primary function of this module is to provide a generic Forker class that can be used by other objects. This is loosely based on the IRIDIS Class of rje_iridis but with the difference that it does not fork out processes to other host nodes.

Commandline

FORK CONTROL OPTIONS

forkdir=PATH : Alternative directory for forking output. [./]
tofork=LIST : List of system commands to fork out (standalone Forker only) []
iolimit=X : Limit of number of IOErrors before termination [50]
memfree=X : Min. proportion of node memory to be free before spawning new fork [0.1]
noforks=T/F : Whether to avoid forks [False]
forks=X : Number of parallel sequences to process at once [0]
killforks=X : Number of seconds of no activity before killing all remaining forks. [36000]
killmain=T/F : Whether to kill main thread rather than individual forks when killforks reached. [True]
forksleep=X : Sleep time (seconds) between cycles of forking out more process [0]
rjepy=T/F : Whether forked commands are rje Python commands [False]
logfork=T/F : Whether to log forking in main log [True]
resfile=LIST : List of results files (BASEFILE.X) that will need transferring []


See also rje.py generic commandline options.

History Module Version History

    # 0.0.0 - Initial Compilation.
    # 0.0.1 - Tweaked the logfork=F log forking output.
    # 0.0.2 - Fixed formatting for Python 2.6 back compatibility for servers.
    # 0.1.0 - Added killmain=T/F    : Whether to kill main thread rather than individual forks when killforks reached. [True]

© 2015 RJ Edwards. Contact: richard.edwards@unsw.edu.au.