-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can an exception be thrown if the processing time on the timer is too long? #9142
Comments
@kengiczhangchao there is no response for a timer execution, so there would be nothing to catch the exception. This is true for timers in .NET in general: there is no call site in user code where the exception can be propagated to. Given the above, what would you like to see in the case that a timer callback exceeds its time limit? It should be straightforward to implement something. |
|
@kengiczhangchao could you show me roughly what the timer task is doing? If it is running forever, that is a problem. Grains are single-threaded and cancellation in .NET is cooperative (the callee must check the |
Can an exception be thrown if the processing time on the timer is too long.
Settings similar to the following
.Configure(options =>
{
options.ResponseTimeout = TimeSpan.FromSeconds(30);
})
The text was updated successfully, but these errors were encountered: