A job can hold one of the following statuses:
• Created: This state is applied to a job when it has been created and has not been scheduled. A job can be created in three ways: as part of a workflow node executing, as a result of a user action or as a result of an API call. When a job is first created, it is saved to Ooyala Flex's internal database. At this point it is considered created. Ooyala Flex's job Scheduler ignores jobs which do not have a start time scheduled.
• Scheduled: When a job is allocated a start time it is considered scheduled. Once a start time has been set, the job scheduler will periodically check to see whether it is due to be run.
• Pending: A job is pending, when it's start time is equal to or later than the current time. At this stage it has not been added to the Ooyala Flex job scheduler's internal queue as the queue is full.
• Queued: When a job is queued, it means that it has been added to the Ooyala Flex Job Schedulers internal queue and will execute as soon as the required resources become available.
• Waiting for Lock: Some jobs require exclusive access to a Ooyala Flex object such as an asset. The Waiting For Lock state indicates that the job is due to run, but that it's waiting for a lock. In order for the job to run safely against an asset it must first obtain access to an exclusive lock. If when the job begins running, it cannot obtain a lock, its state is set to Waiting For Lock and it is added to a lock queue. When the job that owns the lock relinquishes the lock (because its job has completed), the lock will be given to the next job in the queue.
• Running: This state indicates that a job has been executed by the Ooyala Flex job scheduler and is currently running. This implies that the code inside the associated action is being run.
• Timed Out: If the action associated with a job has a time out value set and the job has been running longer that the time out period, the Job will be set to Timed Out.
• Failed: A failed job can be either retried or cancelled.
• Cancelled: Once a job has been cancelled this cannot be changed. As a result the job cannot be retried, scheduled etc.
• Completed: A completed job has successfully completed execution. Once a job has completed it cannot be retried, scheduled etc.