-
Notifications
You must be signed in to change notification settings - Fork 41
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
Make transaction scope timeout the same as command timeout #612
base: main
Are you sure you want to change the base?
Conversation
Hi, @sebgod ! Thanks for you PR. I'm not sure whether you meant to publish this as "I think this is ready to merge" or if it's just a draft? I see that this sets the timeout on the transaction. But do you have any particular use case/issue this fix solves? I don't know what the default timeout is here? Is it limited, or is it infinite? If it's infinite, I don't see a purpose in setting the timeout on both the transaction and the connection. Could you please write a couple of word on which issue this PR solves? :) |
Will this one solve #572 , perhaps? |
Thanks. I'll wait until you have added a description too, then :) please reach out if you have any questions. Please, also be aware of this property: https://learn.microsoft.com/en-us/dotnet/api/system.transactions.transactionmanager.maximumtimeout?view=net-9.0 It might look likt the MaxTimeout is only set in .NET Framework? I'm not sure: https://learn.microsoft.com/en-us/dotnet/api/system.transactions.configuration.machinesettingssection.maxtimeout?view=netframework-4.8.1&viewFallbackFrom=net-9.0 |
Yeah I am also not quite sure how it works. We run grate in a container so relying on a machine config is troublesome at best, and a setting a specific value feels safer than relying on an unpredictable default behaviour. I hope I can do some testing done today |
Yes, we should definitely set it explicitly, not rely on environmental settings. But it might be that we also need to increase the |
No description provided.