Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /guides/JobManager.md for this page in Markdown format</div>

Home | Changelog

Job Manager ​

General Info ​

Job manager consists of a JobManager class and job classes for each task. It creates the required records in db for scheduled tasks if the list is empty. It runs one job at a time until it succeeds or fails (default from master for failure is 3 tries)

Admin and advisable user have access to jobs listing. Advisable users are allowed to remove a job, add a job or execute a job on demand.

Implementation ​

Set up 1 cron job (php cli.php job_manager) in plesk to run every minute.

All enabled jobs with their schedule are in config/jobs.php

Set php path in .env file if php is not in PATH. For plesk ie set APP_PHP_EXECUTABLE=/opt/plesk/php/8.1/bin/php in .env file.

Upgrading from Cronjob class ​

Check which cron jobs are in plesk and set these in jobs config. Check for code in cronjob that is altered and update application/jobs with overrides if needed.

On Demand Execution ​

To execute a job on demand, use the following command:

bash
php cli.php job/<job_name>