Deployment with Active Jobs – How can we do with Active jobs

Deployment with Active Jobs – How can we do with Active jobs : In this Salesforce Tutorial we are going to learn about Deployment with active Jobs, what is active job, how can we do deployments with active jobs.

What is Active job ?

Active Job in salesforce is a scheduled job or any apex job which is running in our salesforce system.

Deployment with active jobs is a  added to the Deployment Settings page in salesforce. Through this processes we can deploy components referenced by active Apex jobs in system. With this feature, we don’t have to stop Apex jobs to be able to have a successful deployment.

Previously, deployments failed if they contained components that were referenced by Apex jobs that were pending or in progress. For example, if you deploy an Apex class that implements Schedulable, and there is a scheduled job that corresponds to this class, this class can’t be deployed, and the entire deployment fails.

In winter 15 release, salesforce.com has added this feature to continue deployments when jobs are running in the production. So there is no need to stop schedule jobs to perform deployment when active jobs are running.

How to enable Deployment with Active Jobs ?

To enable Deployment with Active Jobs follow the steps given below.

Go to Setup=>Deployment Settings.

Deployment with Active Jobs

  • Now click on Deployment settings. A new window will be opened there we have to check “Allow deployments of components when corresponding Apex jobs are pending or in progress” check box as shown below.

Deployment with Active Jobs

Now Deployment with Active Jobs will be done.