-
Notifications
You must be signed in to change notification settings - Fork 274
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
是否支持timeout机制? #8
Comments
这个要分情况了,如果本身就是需要执行那么长时间,显然用户应该是清楚的,在pool中执行的时候只会占用一个具体的gengine实例,只要将pool len设置长一点,确保请求来的时候有足够的实例提供服务就行; |
感谢回复。
那么,此时可能需要一个自动的或者可以外部调用的kill方法,能(仅)将该条规则的运行时强制关闭,并下线。 |
等我们上线了ui之后,我们会进一步思考这个机制 |
看上去可以借鉴 context.WithTimeout 的思路 |
context的timeout可行! |
规则对用户暴露,如果用户创建了长时运行的规则,是否有超时机制直接停止该条规则执行,从而防止引擎被阻塞。
The text was updated successfully, but these errors were encountered: