Index

(jobs)

o2job_create

integer o2job_create(string $name, string $prg, array $params, string $desc, integer $keep_days, integer $max_instances, string $block_mode, boolean $disabled)

Creates a new job, assigns a new ID and stores it in system data.
New assigned ID is returned.


Parameters:
  1. $name
  2. Job name
  3. $prg
  4. Program name caled by job
  5. $params
  6. List of program parameters, referenced by name
  7. $desc
  8. Job description
  9. $keep_days
  10. Days job instances are preserved from deleting
  11. $max_instances
  12. Max number of instances can run at a time
  13. $block_mode
  14. Run blocking mode: [B]lock, [Q]ueue
  15. $disabled
  16. Disabled job will not run
Related functions:

o2job_get_by_name