sometime when we are saving apex classes, we will get error message batch jobs are pending. so that we cant able to save it. to save that apex class we need to wait for all the jobs to be complete or we can abort those jobs running the following command in developer console.
Delete pending batch jobs in apex
for(AsyncApexJob job:[SELECT Id, Status FROM AsyncApexJob WHERE Status IN ('holding','Queued','Preparing')]){
System.abortJob(job.id);
}