Proof of concept for having only one Schedulable class, and storing the classes to be run in the database.
Saving the default jobs to run in the scheduler itself.
Calling the scheduler from the settings page.
Merge dev into feature/411-main-scheduler
Since the global scheduler sets the defaults if there are none, we can just call it directly from the install script.
Merge branch 'feature/411-main-scheduler' of https://github.com/SalesforceFoundation/Cumulus into feature/411-main-scheduler
Renaming the global schedulable. Adding back the method to schedule a job if not scheduled. Calling it from the settings page controller.
Renaming test class.
Storing frequency and last time job run in Schedulable__c. Checking those fields to see if the class should be run again.
Moving the schedulable code into a helper object. Creating a helper for it (empty, right now).
Scheduling the global job to run every hour.
Querying additional fields.
Merge dev into feature/411-main-scheduler
Wrapping call from global scheduler to each class in try-catch.
Fixing prefix.
Merge branch 'feature/411-main-scheduler' of https://github.com/SalesforceFoundation/Cumulus into feature/411-main-scheduler
Adding changes to package.xml
Merge dev into feature/411-main-scheduler
- Removing refs to any other classes from the global scheduler
- Creating the default scheduler records in the install script
- Creating tests for the execute method of the global scheduler
- We can test the execute method directly -> no need for a helper class
- Putting back the job scheduler test (helper that schedules classes not scheduled) and fixing it
Merge branch 'feature/411-main-scheduler' of https://github.com/SalesforceFoundation/Cumulus into feature/411-main-scheduler
Merge dev into feature/411-main-scheduler
Using active field from schedulable__c object instead of npe03_Disable_Nightly_Job__c in RD settings page.