You are viewing an old version of this page. View the current version.

    Compare with Current View Page History

    « Previous Version 5 Current »

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

    The following qb.conf parameters must be set appropriately:

    supervisor_policy_binding = Perl

    supervisor_policy_library = path_to_script


    To create a new custom supervisor policy, the developer must create a Perl module with the following Perl subroutines:

    1. qb_init()
    2. qb_approve_modify($oldjob, $newjob)
    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".

    Here are details on each subroutine.

    • No labels