SuiteCRM Scheduled Jobs allow administrators to automate repetitive CRM tasks, including record updates, data synchronization, email processing, and database maintenance. By creating custom scheduled jobs, developers can execute business-specific operations automatically at predefined intervals without manual intervention.
This guide explains how to create custom SuiteCRM Scheduled Jobs using PHP, register them, configure cron execution, and troubleshoot common issues.
What Are SuiteCRM Scheduled Jobs?
SuiteCRM Scheduled Jobs are automated tasks that execute predefined operations at specific intervals. The platform includes built-in schedulers for activities such as checking inbound emails, processing workflows, and sending notifications. Understanding scheduler-based automation in SuiteCRM helps administrators automate recurring operations, synchronize CRM data, and reduce repetitive manual tasks.
Developers can also create custom jobs to automate operations such as:
- Updating CRM records automatically.
- Synchronizing data with external applications.
- Cleaning up outdated records.
- Generating periodic reports.
- Processing background data operations.
Prerequisites for Creating Custom SuiteCRM Scheduled Jobs
Before creating a custom scheduled job, ensure that you have:
- Access to SuiteCRM application files.
- Administrator access to the Schedulers module.
- PHP CLI installed and configured.
- Appropriate file and directory permissions.
- Access to the server’s cron configuration.
- A backup of your application and database.
Note: The PHP implementation below follows the traditional SuiteCRM 7.x extension approach. SuiteCRM 8.x requires version-specific configuration.
How to Create Custom SuiteCRM Scheduled Jobs Using PHP

Follow these steps to register and configure a custom scheduled task in SuiteCRM 7.x.
Step 1: Register the Custom Scheduled Job
Navigate to the following directory in your SuiteCRM installation:
custom/Extension/modules/Schedulers/Ext/ScheduledTasks/
Create a PHP file named custom_job.php and add:
<?php
$job_strings[] = 'custom_suitecrm_job';
This registers the custom function with the SuiteCRM scheduler.
Step 2: Define the Scheduled Job Function
Create another PHP file at:
custom/Extension/application/Ext/Utils/custom_suitecrm_job.php
Add the following code:
<?php
function custom_suitecrm_job()
{
$GLOBALS['log']->info(
'Custom SuiteCRM scheduled job executed.'
);
return true;
}
This function records an execution message in the SuiteCRM application log and returns true when the operation completes successfully.
You can replace the logging statement with your business logic, such as updating CRM records or processing data.
Step 3: Rebuild the Extensions
After registering the job, log in to SuiteCRM as an administrator.
Navigate to:
Administration → Repair → Quick Repair and Rebuild
This regenerates the extension files and makes the custom scheduled job available to the application.
Step 4: Activate the Scheduled Job
Navigate to:
Administration → Schedulers
Locate the newly registered custom job, create or configure its scheduler entry, and set the following options:
- Job: Select the custom function.
- Status: Active.
- Interval: Choose the required execution frequency.
- Start Date: Set the appropriate starting time.
Save the configuration.
How to Configure Cron Jobs for SuiteCRM Scheduled Jobs

Registering a scheduled job does not automatically execute it. The server must run SuiteCRM’s scheduler process to check and execute active jobs. Configuring SuiteCRM scheduler integration ensures that scheduled extension activities, including status updates and automated document processing, can run through the CRM’s cron process.
For traditional SuiteCRM 7.x installations, add the following entry to the appropriate user’s crontab:
cd /path/to/suitecrm && \
php -f cron.php > /dev/null 2>&1
Replace /path/to/suitecrm with your actual installation directory.
For SuiteCRM 8.9 and later, the documented scheduler entry point is:
/path/to/php \
/path/to/suitecrm/bin/console schedulers:run \
> /dev/null 2>&1
Replace the PHP executable and SuiteCRM paths with the correct server paths.
Run the scheduler using the authorized web-server user to avoid file permission issues. Follow the allowed_cron_users configuration requirements for your installed SuiteCRM version.
Best Practices for Managing SuiteCRM Scheduled Jobs
Follow these practices to maintain reliable scheduler execution:
- Use appropriate intervals: Avoid running resource-intensive tasks more frequently than necessary.
- Implement error logging: Record execution failures and important operations.
- Prevent duplicate execution: Use locking mechanisms when jobs must not overlap.
- Optimize database queries: Process large datasets in manageable batches.
- Maintain permissions: Run scheduled tasks using authorized system accounts.
- Monitor execution: Review scheduler status, execution timestamps, and application logs regularly.
Common SuiteCRM Scheduled Job Problems and Solutions
| Problem | Possible solution |
| Custom job not appearing | Check the registration file and run Quick Repair and Rebuild. |
| Cron job not executing | Verify the cron entry and PHP CLI path. |
| Permission denied | Check file ownership and cron user permissions. |
| Job execution failure | Review SuiteCRM and PHP error logs. |
| Duplicate execution | Implement a suitable job-locking mechanism. |
| Slow job execution | Optimize queries and process records in batches. |
Latest SuiteCRM Scheduler Developments
SuiteCRM’s background processing has evolved with its newer releases.
- SuiteCRM 8.9: Introduced the Symfony console command bin/console schedulers:run as the new scheduler entry point for Symfony-side schedulers.
- SuiteCRM 8.10: Provides Symfony Messenger workers for supported asynchronous operations. These workers process background tasks separately from the scheduler and require their own configuration.
- Improved monitoring: The SuiteCRM 8 scheduler interface provides information such as the last user to run schedulers and the last successful execution time.
Administrators should follow the documentation for their installed version rather than applying SuiteCRM 7.x instructions directly to SuiteCRM 8.x. Consulting the official SuiteCRM 7 and SuiteCRM 8 documentation helps administrators identify version-specific configuration steps, installation requirements, and feature differences before making changes.
Conclusion
SuiteCRM Scheduled Jobs help administrators automate repetitive operations, reduce manual work, and improve CRM efficiency. By registering custom PHP functions, configuring scheduler intervals, and setting up the appropriate cron process, developers can automate business-specific tasks. Always verify the implementation against your installed SuiteCRM version, monitor execution logs, and follow appropriate server permission practices.
Register a custom PHP function through the SuiteCRM extension framework, rebuild the extensions, and activate the job through Administration → Schedulers.
Check whether the job is active, cron is configured correctly, PHP CLI is working, and the server user has the required permissions.
Execution frequency depends on the scheduler interval and server cron configuration. A common configuration checks for scheduled tasks every minute.
No. Traditional SuiteCRM 7 uses cron.php, while SuiteCRM 8.9 and later uses bin/console schedulers:run for its new scheduler entry point.
Use Administration → Schedulers to review job status and execution information. Check suitecrm.log and server logs when troubleshooting failures.
