Job Life Cycle Statuses: Additional Information

Resuming a Job

It is possible to resume a job (resume()). This is called on by the job async executor and resources. The executors provide this method in the event that a job has timed out and won’t respond. Alternatively, the job will fail.

Note: If the isResumeSupported option is configured but resume() is not implemented, the job fails. See the Plugin Development Guide for more information.
Note: please contact the Ooyala Flex team for more information regarding this.

Retrying a Job

Jobs can be retried (retry()). This is called on by the job sync, async executors, and resources in the event that Enterprise has retried the job. Job executors may decide to run the execute() method immediately. It is important to consider different scenarios before executing the job.

Note: please contact the Ooyala Flex team for more information regarding this.

Cancelling

As a user you can cancel a job using either the Flex Enterprise UI or REST API.

In a distributed environment with no available transaction options, you need a way to cancel jobs. This is especially important when a job is not found in the architecture.

In the case of JEF, Redis is used as a shared repository in order to mark jobs that are being cancelled.

A job can be cancelled while it is in a QUEUED state in JEF. A job can also be cancelled while RUNNING in a job async executor when executing a job.

cancel(): The cancel() method is called on by the job async executor and resources if Enterprise has requested to cancel the job. The job executor might decide to ignore or not implement this interface. If so, the job can’t be cancelled.

Note: Currently JEF uses ActionProgressService notifications (see the Development Plugin Guide) to check whether a cancel request is pending for a job. If there is a cancel request, the cancel() method is invoked for that executor. It is the responsibility of the executor to verify that the job ID corresponds to the execution job ID.
https://help.ooyala.com/sites/all/libraries/dita/en/media-logistics/flex/dev/70/jef_programming_guide_job_life_cycle_additional_info.html