abort currently running job in Salesforce
Please run a SOQL query on AsyncApexJob with Status filter. CronTrigger is used to retrive Scheduled jobs wherein AsyncApexJob returns Apex Jobs (Running, Aborted, Pending, Completed etc.)
SOLUTION:
Use Below Code:-
for ( AsyncApexJob aJob : [ Select id ,Status, ApexClass.Name
from AsyncApexJob where Status!='Aborted'
and Status!='Completed' ] ){
System.AbortJob(aJob.Id);
}
Went to SetUp --> Monitoring --> Apex Jobs. There was Abort option :)