Troubleshooting Scheduled Events - ashish-greycube/help GitHub Wiki
1. Verify the scheduler status
Run any one command from below commands in your bench directory
bench --site site-name doctor
bench --site site-name scheduler status
If status is disabled than run the following command to enable it
bench --site site-name enable scheduler
2. Check if given cron expression is correct or not
Go to Cronguru website and verify the expression
3. Run Bench Migrate
If the changes have been made to the database or code than run migrate
bench --site site-name migrate
4. Check if the scheduled job type is created or not for that job
1. Go to Desk and Search Scheduled Job Type
2. Check the name of your Scheduled Event is present or not
[!NOTE] The Scheduled Job Type is created after the bench migrate so, first perform bench migrate
5. If all of these steps are done correctly than Check Scheduled Job Logs for the execution status of the Scheduled Event
1. Go to Desk and Search Scheduled Job Logs
2. Check the status of the Scheduled Event is Failed or Success.
a. If the status is failed then open that log and it will show the reason of the execution to be failed.