Deployment fails due to "schedulable class has jobs pending or in progress" even with SF setting to allow this checked.
Issue #392
resolved
The behavior I've been seeing until a relatively recent release showed a validation error for schedulable classes that have pending jobs, but the deployment succeeded. We do have the deployment setting flag "Allow deployments of components when corresponding Apex jobs are pending or in progress" checked.
As of August 23rd, we began to be unable to use IC to deploy scheduled classes with pending updates. Log error below. We are still able to deploy using Eclipse/Force.com IDE, and we are able to deploy if we delete the scheduled jobs.
Log is below:
12:36:29,612 [512513621] INFO - der.ForceComToolingApiDeployer - Starting deployment with a polling interval of 1000 milliseconds.
2016-09-07 12:36:38,618 [512522627] WARN - der.ForceComToolingApiDeployer - Found ERROR for ApexClass classes/IntegraSalesforce.cls: This schedulable class has jobs pending or in progress
2016-09-07 12:36:38,618 [512522627] INFO - der.ForceComToolingApiDeployer - Reporting error for C:/Apps/IlluminatedCloud/MechDev/SalesforceSandbox/src/classes/IntegraSalesforce.cls
Comments (3)
-
repo owner -
reporter Nope, looks like that did the trick! Thanks as always for the prompt response!
-
repo owner - changed status to resolved
Glad to hear!
- Log in to comment
First off, hi, June! Haven't heard from you in a while. A few weeks ago I started to funnel WAY more deployments through the Tooling API which may not work with that deployment setting. You can go into Settings>Illuminated Cloud>Validation and Deployment and uncheck the various Prefer Tooling API for flags to force things through the Metadata API. Please let me know if that doesn't resolve this for you.