You need to sign in to do that
Don't have an account?
Apex Scheduler Issue in VF controller
Hi,
I am facing few challenges while scheduling a Batch apex class. I am trying to schedule a Batch job. When I use System.Schedule() to schedule an Apex job, I am seeing some strange behavior:
Any help will be appreciated!!!
Thanks, Naresh |
Hi,
I am not sure of the 1st problem regarding invoking batch job from controller, haven't tried it.
However I have done the 2nd part about deleting scheduled jobs. Here is a code snippet for the same.
The above code is to select jobs in "Waiting" state and delete them. In case you don't want to select jobs in any particular state just remove the where clause, and you can delete all your scheduled jobs.
Hope this helps.
Regards,
Lakshmi.
Could you post the code you are using to schedule the job. It may help in understanding the first issue.