web api - Stop Multiple WebAPI requests from Azure Scheduler -


i have web api task , takes couple of minutes based on data. can increases on time.

i have azure scheduler job calls web api every 10 minutes. want avoid case second call after 10 minutes overlaps first call because of increase in time execution. how can put smarts in web api detect , avoid second call if first call running.

can use autoresetevent or lock statements? or keeping storage flag indicate busy/free better option?

persistent state best managed via storage. can long-running activity persist through role reset (after all, role may reset @ time long availability constraints met).

ensure think through scenarios long running job terminates halfway through.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -