-
Notifications
You must be signed in to change notification settings - Fork 188
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
Quota for ActionStatus push to be checked only for intermediate statu… #1846
Quota for ActionStatus push to be checked only for intermediate statu… #1846
Conversation
…ses. Always allow terminate/final status
Can one of the admins verify this patch? |
I'm not sure if it is a good idea. This way device could bypass limit and create unlimited statuses. |
There is an initial check whenever status comes if action is still active (meaning no final status yet reported) Once reported final status - no further statuses intermediate/final could be reported. Behavior of device is indeed unpredictable, but we should accept final status so that action can be reported as completed, otherwise we miss the final status and action is in pending state until manual close (even though action has completed, we just reject the final status) |
yes, but this won't percent new action and device could user only final statuses. And if it use intermediate - next action will be broken and hang again. So, this won't fix the problem - device has too many action statuses - they shall be clean up |
not sure if i get the concern. action status quota is per Action (action id). once final status is reported to an action - action is being closed and cannot be updated anymore with any (intermediate/final) given Action -> Action statuses could not interfere with other Actions and their statuses |
aha, if the quota is per action - then should be ok, if you add a check that the action statuses won't become more than quota + 1 or if it is carefully checked than in all flows someone has already checks the action is active (as you said). |
…ses. Always allow terminate/final status