Failed Jobs

Every once and a while, a Job may fail. The reason for a Job failure largely depends on the associated Action and what work the Action is carrying out. For example if a Job is publishing an Asset to YouTube and the network is temporarily down, the Job will certainly fail.

As previously mentioned: Once an Action has been executed, a job will be created. If the Job fails, then the Job will be marked as failed. (In addition, if a Job is associated with a Workflow Instance, the Workflow Instance will also be marked as failed).

The Failed Jobs section provides a list of all Jobs that been failed in Ooyala Flex.

You will see two failed jobs links in the Jobs Tab. One above the Job Summary section, and another on the Toolbar. When you click on these links, you will be taken to a Job search results screen with search fields pre-populated to show all failed Jobs. From this view you can easily enable Bulk Actions to Cancel or Retry one or many failed Jobs.

Note: Once a Job has been cancelled it can no longer be run.

When a Job failure occurs, you have two options available:

1) Retry the Job: This sets the state to queued so the Job Scheduler can try to run it again. When this happens the retry count is incremented by one.

2) Cancel the Job: This sets the Job to cancelled and it can no longer be retried.

The relationship between Workflows Instances and Jobs is a very powerful one. It means that a Workflow Instance can only fail if a Job fails, and that a failure is isolated to a Job. The transactional nature of a Job means that as soon as it is retried successfully and completes, the Workflow state will be retained and the Workflow Instance will continue to run from where it left off.

When a Job fails, you can access information about why a Job failed by consulting the History tab in the Job Details view. History entries in red are those Events that are associated with a Job failure.

Ignoring Job Failures

A script command can be used in the event that a Job should fail. If the job fails, and the failure can be ignored, you can set a variable in the script's job context as follows:

context.setJobStringVariable("ignoreJobFailure", "true")

Was this article helpful?