Has anyone ever come across this error while attempting to schedule a Schedulable Apex Class?
Error: You must select an Apex class that implements the Schedulable interface.
I had previously been able to schedule this class, but now for some reason, it's giving me this error.
It's not really making sense to me as the class I'm scheduling hasn't been changed:
global class PrimaryDistrictAccountAutoScheduler implements Schedulable {
global void execute(SchedulableContext ctx) {
Id batchInstanceId = Database.executeBatch(new PrimaryDistrictAccountAutoBatch(true), 50);
}
}
I made some changes to the underlying batch and redeployed to this sandbox and that's when the issue arose. But, I ran the test in the development sandbox and again when deploying to this sandbox, so I'm not sure why that would be an issue!?