Index

(jobs)

o2job_run

integer o2job_run(string $job_name, array $params)

Runs job with passed name.
Job is queued for execution and a dedicated batch process is started.
A list of parameters (by name) can be provided: list will override parameters passed to program called by job.
If job exists then new job execution ID is returned, else FALSE.


Parameters:
  1. $job_name
  2. Job name to look for
  3. $params
  4. List of overriding parameters passed to program
Related functions:

o2job_create

o2job_queue

o2job_get_by_name

o2job_is_running