Versions Compared

    Key

    • This line was added.
    • This line was removed.
    • Formatting was changed.
    Comment: Published by Scroll Versions from this space and version 6.10-0

    Custom Policy implementation is done using a script file plug-in written in Perl.

    The following qb.conf setting for this is as followsparameters must be set appropriately:

    supervisor_policy_binding = PerlsupervisorPerl

    supervisor_policy_library = plugin_path
    This document isn't meant to be a tutorial on the Perl scripting language so we will assume administrators modifying this module in the following documentation already have a functional knowledge of Perl's syntax. Good online resources for learning Perl can be found at {+}http://www.perl.com+ there also many good published books such as Learning Perl published by O'Reilly which can get a beginning developer started with Perl scripting. path_to_script


    To create a new queuing algorithmcustom supervisor policy, the developer must create a Perl module with the following Perl functionssubroutines:

    1. qb_init()
    2. qb_approve_modify($oldjob, $newjob, $user)
    3. qb_approve_submit($job)
    4. qb_calcstatus($subjobstatus, $agendastatus)
    5. qb_sudo_admin($username, $job)

    A function, if not defined will, automatically be overridden with the "Default Policy". Example scripts can be found here:

    • Linux: /usr/local/pfx/qube/examples/supervisor
    • Windows: C:\Program Files\pfx\qube\examples\supervisor
    • OS X: /Applications/pfx/qube/examples/supervisor

    ...

     

    Here are details on each subroutine.

    Children Display