Quantcast
Channel: SCN : Discussion List - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4237

How can I prevent other jobs from running while running a scheduled job?

$
0
0

I have a job that reads data from SQL Server and stores the data in a local persistent cache on my DataServices JobServer.

 

This persistent cache in then used by other jobs that run on demand through out the day. These on demand job as started via the Run_Batch_Job webservice call.

 

I would like to be able to schedule the job that loads the persistent cache files to run at a set time every day. However, when this job is running I need any other jobs to wait until the persistent cache job is complete. Otherwise these job will access incomplete, or unreadable, cache files since they are trying to run at the same time that the cache is being reloaded.

 

How can I make these jobs aware that the persistent cache job is running, and how can I get them to wait until it is complete before they stop?


Viewing all articles
Browse latest Browse all 4237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>