SaaS CMS has officially launched! Learn more now.

Run scheduled job on a specific server

Vote:
 

Hi,

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,

Roxana

#118091
Feb 27, 2015 10:37
Vote:
 

* on a specific server

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

#118109
Edited, Feb 27, 2015 10:45
Vote:
 

Hi Roxana,

Khurram offers a suggestion on how to run a scheduled job on a specific server - http://world.episerver.com/blogs/K-Khan-/Dates/2014/10/episerver-schedule-jobs-episerver-7.5-faqs/

#118147
Feb 28, 2015 0:27
Vote:
 

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.

Thanks,

Roxana

#118185
Mar 02, 2015 10:46
Vote:
 

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.

#118217
Mar 02, 2015 19:01
Vote:
 

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,

Roxana

#118223
Mar 03, 2015 8:44
Vote:
 

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,
Erik

#118231
Mar 03, 2015 10:03
Vote:
 

Hi Erik,

Thank you for the suggestion. This sounds good.

Roxana

#118232
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.