AnsweredAssumed Answered

Scheduler job doesn't execute my php changes

Question asked by Stefano Mapelli on Sep 5, 2016
Latest reply on Sep 6, 2016 by Stefano Mapelli


I work with sugar pro 7.6 and I want to execute a custom job which checks the status of the contracts and does something.

I correctly setup my batch file (following the documentation instructions) for the execution of the scheduled job and the file is executed each minute.


I have created a file at this location C:\wamp\www\sugarcrm\custom\Extension\modules\Schedulers\Ext\ScheduledTasks\rinnovo_contratto.php with this lines


array_push($job_strings, 'rinnovo_contratto');
function rinnovo_contratto()
error_log("Start job",0);
$today = date("Y-m-d");
error_log("Date range start:".$today,0);
return true;


I have created a scheduler that execute rinnovo_contratto.php and in the detailview of the scheduler I can see a lot of execution of the job.


The problem is that, when I want to change the code in this php file and I want to test it, I can't do this. If I add some lines of codes nothing happens. I try to delete the cache, make a quick rebuild and rebuild the scheduler but nothing change.

There' s no errors in the log files that can help me to find a possible problem.

Or sugar executes the old job, or it doesn't execute the file.


Can you help me? I can't lose all this time for each update of my code.


Best regards