Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dead task detection and auto restart #1

Open
haacked opened this issue Oct 15, 2011 · 1 comment
Open

Add support for dead task detection and auto restart #1

haacked opened this issue Oct 15, 2011 · 1 comment

Comments

@haacked
Copy link
Contributor

haacked commented Oct 15, 2011

If a task gets in a state where it's marked as active, but nothing is working on it, it'll effectively block anyone from working on it.

We need to detect this case and log an error. Also consider auto restarting such tasks based on past average task elapsed times.

@odinserj
Copy link

odinserj commented Jun 9, 2014

This is a major problem for performing long-running tasks in ASP.NET app with WebBackgrounder, because it will be killed on AppDomain unload after the ShutdownTimeout of the hosting environment expiration (defaults to 30 seconds).

If you want to handle long-running jobs in ASP.NET application without using Windows service, take a look at http://hangfire.io (it is open-source, https://github.com/odinserj/HangFire).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants