I have a schedulable class, that call a batch, like that :
global class batchSchedulable implements Schedulable {
global void execute(SchedulableContext sc) {
myBatch b = new myBatch();
String sch = '0 0 * * * ? ';
System.schedule('myBatch', sch, b);
}
}
The batch myBatch
work well when I run it with the developper console -> anonymous window.
But I have to run the batch myBatch
every hour of every day. So I have to use a schedulable class that call it, right ?
But when I launch this schedulable class in the anonymous window, my batch is not working as expeted (the pupose of the batch is to update an object, and in this case no update happens)