29 September 2015 10:57
Can anyone guide me please with regards to running schedulers?
I created a php file with a simple echo statement to test if the scheduler that has been created will run.
I am not sure why the scheduler is not running as it always says Last Successful Run: Never
I have placed the job as “URL” and the location of the file in job url.
I have this command in the sugar.bat:
C:\xampp\php\php.exe -f C:\xampp\htdocs\suitecrm\cron.php
Any advice will be appreciated.
29 September 2015 14:19
If you haven’t run a Quick Repair/Rebuild since you have created the Scheduler, please do so.
If it still doesn’t work it may be worth consulting SugarCRM’s guides on Custom Schedulers, to see if there is anything that may have been missed in the process:
Also, Do any of your other schedulers run?
30 September 2015 14:27
Thank you for your time in responding to my post.
I tried and applied the instructions given in the link you have provided. However, it is still not working.
The last successful run is still “Never”.
The scheduler “Process Workflow Tasks” is working though.
Can you please help me? Am I missing something?
30 September 2015 15:16
I assume that your ‘Process Workflow Tasks’ shows a Last Successful Run, to prove that it is working?
There could be a few issues. Please make sure all relevant details match, such as the Job Name and PHP file names.
If they do match then check the code itself. Double check that there are no missing Semi-colons or brackets of any kind.
30 September 2015 15:28
sorry, my mistake, I thought that if a workflow task has been triggered (fired a task) it indicates that the scheduler “Process Workflow Tasks” has a successful run.
I just checked it and it also shows Last successful run: Never
I will also look deeper into this and research further.
If you have anything in mind please don’t hesitate to share it.
30 September 2015 15:31
Seems like you will need to set up your crontab then.
I have made a few posts detailing how to do it in this thread: https://suitecrm.com/forum/advanced-opensales-workflow-portal-support/6463-date-field-doesn-t-work-on-report-or-workflow-condition#23427
Hopefully they will help