Jobs

Jobs are scheduled routines, that are processed at a certain point in time, whether it be time based or action based.

Zend platform's Job Queue functionality provides the means to run jobs in several ways to suit different needs using the following tools:

Jobs can be created by directly adding functions to the Code using the Job Queue API. These Jobs are automatically detected by the Job Queue. Additional, simpler jobs can be created directly from the Jobs Tab by basically, defining the Jobs METADATA and directing to a script that needs to be run. Once Jobs are defined or identified by the Job Queue functionality you gain the ability to change, modify and reschedule the Job details and settings while storing historical information for future reference.

Additional Information

The following points refer to Job behavior in specific situations:

Can Jobs be scheduled on a specific server and setup a backup server that would run even if the server is down?
It is possible to install several Job Queue daemons on different servers to run the same Job, but currently it is not possible to create a dependency between Jobs. If you still require a solution to monitor Job execution, an additional option is to create a separate queue on a server that has sufficient access rights to monitor the expected results of running the Job and create a script, using the Job Queue API to re-run run the Job (on a different server) if for some reason the original Job was not executed.

What happens if the server was down and then comes up again?

If the server falls all jobs are recovered. If server went down while actually executing a job it will be re-executed.

Execution of jobs that weren't executing depends on the specific Job's attributes:

 

 

Related Links

Related Links:
Job Queues

Job Queue Directives