SaaS CMS has officially launched! Learn more now.

Run scheduled job on a specific server



Does anyone know a way to run an EPiServer scheduled job on a specific version, while keeping other jobs running on all servers?

The project that I'm working on is using EPiServer 6.1.379 and it has 2 publically available web servers and 1 internal web server.

They want the sitemap job to run on the 2 public web servers, while another feed job (which is consuming a considereable amount of resources) to run on ther internal web server.

Thank you,


Feb 27, 2015 10:37

* on a specific server

Our main concern is to make the feed job run only on the internal server.

Edited, Feb 27, 2015 10:45

Hi Roxana,

Khurram offers a suggestion on how to run a scheduled job on a specific server -

Feb 28, 2015 0:27

Hi Richly, 

I already saw that thread, but it doesn't help me much since it involves setting the enableScheduler config to false on the public web servers, which will disable the sitemap job.

We want to enable the export feed job only on the internal server, while keeping the sitemap job running on the public web servers.



Mar 02, 2015 10:46

Hi Roxana,

Why does the sitemap task need to run on the public facing web servers? Given that EPiServer scheduled tasks only run on a single server each time they're executed, it shouldn't cause problems to run all of your tasks on the internal server.

As far as I'm aware, there's no way to choose which server(s) an individual scheduled job is allowed to run on. If you need that kind of control then perhaps look at separating out the code from the feed job into a command line app and using windows task scheduler on the relevant server.

Mar 02, 2015 19:01

Hi Paul,

I guess that you need to have the sitemap job running on the public servers, in order to update the sitemap files on those servers.

I also thought about using the Windows Task Scheduler, but I was wondering whether there is any support from EPiServer for running a job on a specific server. It's most likely that we're going to use this approach after all. 

Thank you,


Mar 03, 2015 8:44

Hi Roxanna,

afaik, if you share the database, a job will execute on one server, then be marked as IsRunning/have it's next execute time changed. This means the other servers will ignore that job. So a job will only be executed on one server. 

We usually use one server for the scheduled jobs and then sync files that needs to exists on the other servervs. 

Best regards,

Mar 03, 2015 10:03

Hi Erik,

Thank you for the suggestion. This sounds good.


Mar 03, 2015 10:24
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.