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

    Compare with Current View Page History

    « Previous Version 6 Next »


    As a job moves from submission to execution to completion, it goes through a variety of states - at any given moment every job is in exactly one of several possible states. Various commands issued either from the command line or through a Qube! GUI instruct the Supervisor to generate an event that changes the state of the job; this is called a transition. The description of all possible states and their transitions is called a state machine.

    Initial Job States

    The key to understand how to effectively use Qube! to manage jobs is to see how different commands change the state of a job. Qube! jobs can be submitted in one of two initial states: pending and blocked. Pending is the default and signals the Supervisor that the job may be started at any time. Blocked tells the system to hold the job until it is unblocked by something, usually another job that this one depends on. The starting state of a job can be specified by the user or developer through the job structure in the API, or through the command line.

    Intermediate Job States

    Normally, the submission of a job will place it in the pending state. The Supervisor will take over from there, and without any other intervention, will place the job in the running state when it executes. A running job can be killed or suspended by the user who submitted it, or by other users with the appropriate permissions. A job which is killed can never be run again unless it is retried. A job can also be interrupted, which requests the Supervisor to force a job off a host, immediately killing it. The job is then placed back in the queue in the pending state, to be executed on another qualified host.

    Final Job States

    A job that completes successfully is marked as done, and a job that completes unsuccessfully is marked as failed.


    % qbsub --state blocked ls


    • No labels