Scheduled Job

SuiteCRM Create a New Scheduled Job by Code

0 minutes

Create a new file at


Let it call “outright_do_repair.php

Content on this file


array_push($job_strings, ‘outright_do_repair’);


Now go to


Create a new file , let it call “outright_cron_utils.php”.

Scheduled Job by code


function outright_do_repair(){


    global $moduleList;

    $repair = new RepairAndClear();

    $repair->repairAndClearAll(array("clearAll"),$moduleList, true,false);

    $exit_on_cleanup = true;



Now go to admin->Scheduler

Then create a new scheduler with created function and set the schedule time.

Stay updated by signing up for our newsletter

Read our full Privacy Policy here.