Versions Compared


    • This line was added.
    • This line was removed.
    • Formatting was changed.


    In this example, there are presumably 4 implementation files in the callback directory,, mail-status.qcb,, and, that have the implementation code in them.

    titleUse subprocess.Popen .subprocess in callbacks

    If you ever need to run an external script in a callback, we recommend the use of subprocess.Popen.subprocess() to run the external script inside the callback. This returns immediately and allows the callback to continue running, rather than blocking and waiting for the external script to complete; otherwise the supervisor process is tied up for the duration of the external script's execution.

    Do not use os.system() to run the external script, as this call will block until the external script exits. When a large number of callbacks tie up supervisor processes at the same time, your supervisor performance will suffer.




    qb.conf Parameters