I am deploying to production using the Ant migration tool. Every class is reporting the error: Apex class has Batchable or Future jobs pending or in progress
Even classes such as StringUtils and such which have not future or batchable methods.
Someone asked a similar question here
Deployment error: Apex class has Batchable or Future jobs pending or in progress; Schedulable class has jobs pending or in progress
but it was closed for comment because it was a duplicate of this post:
Ghost Schedulable Classes Blocking Deployment
But that post does not answer my problem. Nor does the SF posted help here:
https://help.salesforce.com/HTViewSolution?id=000187051&language=en_US
Best Answer
go to Setup > Administration > Monitoring > Apex Jobs and abort all pending jobs
go to Setup > App > Develop > Apex Classes and hit
Compile all classes
re-run your ant deploy target
Any luck?