You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this nuget package in one of my websites, and it works great. So thanks for spending the time making this.
I have a question/query regarding RecurringJobs and app restarts/app pool recycles... I have the following code which adds a couple of cron jobs on app start.
RecurringJob.AddOrUpdate(() => new RecurringTasksService().DoSomething(), Cron.HourInterval(2));
Again they work great. However...
I was thinking what about app restarts? What happens to these recurring jobs when the app restarts (i.e. config changes, new code pushed to live etc...)... is the same job added again? Is the old job cancelled on app shutdown? I'm just concerned over time I'll end up with X times of the same recurring job.
So instead of working every 2 hours, because of the constant adding of the job on app start it's firing all the time...
The text was updated successfully, but these errors were encountered:
I'm using this nuget package in one of my websites, and it works great. So thanks for spending the time making this.
I have a question/query regarding RecurringJobs and app restarts/app pool recycles... I have the following code which adds a couple of cron jobs on app start.
RecurringJob.AddOrUpdate(() => new RecurringTasksService().DoSomething(), Cron.HourInterval(2));
Again they work great. However...
I was thinking what about app restarts? What happens to these recurring jobs when the app restarts (i.e. config changes, new code pushed to live etc...)... is the same job added again? Is the old job cancelled on app shutdown? I'm just concerned over time I'll end up with X times of the same recurring job.
So instead of working every 2 hours, because of the constant adding of the job on app start it's firing all the time...
The text was updated successfully, but these errors were encountered: