Service Management Background Jobs Overview #
DMSI Service Management schedules 8 recurring background jobs that run automatically to maintain data accuracy, send alerts, and execute automations. These jobs are managed through WooCommerce’s Action Scheduler.
What DMSI Service Management Adds
Core DDLS does not register background jobs. All 8 jobs described here are new additions from this extension. They run independently of any user action and do not require cron to be configured manually.
Requirement: WooCommerce and Action Scheduler #
All 8 background jobs use WooCommerce’s bundled Action Scheduler library. This means:
- WooCommerce must be active for any background job to run.
- If WooCommerce is deactivated, jobs will stop running and queued tasks (including emails) will not be processed until WooCommerce is reactivated.
- There is no fallback to WordPress core
wp-cron— the extension relies exclusively on Action Scheduler.
Job Group #
All jobs are registered under the Action Scheduler group dmsi-sm. This makes them easy to identify in the Action Scheduler admin interface (available at Tools > Scheduled Actions when WooCommerce is active).
Self-Healing Behavior #
Background jobs are registered on admin_init. If a job is missing from the Action Scheduler queue (for example, after a failed deactivation/reactivation cycle), it is automatically re-registered on the next admin page load. Administrators do not need to manually reschedule jobs.
Job Lifecycle #
- Jobs are scheduled on plugin activation.
- Jobs are unscheduled on plugin deactivation.
- Jobs do NOT run during plugin deletion (uninstall) — only schema and data cleanup occurs at that point.
