-
Notifications
You must be signed in to change notification settings - Fork 52
Description
According to the documentation, Neuro should retry a force action if the success is false.
It would be nice to have an, optional, "no_retry" flag on Action Result message to avoid force action being replayed on the Neuro side if we think it does not apply anymore, or we want to manually handle force action retry.
Scenario example where it can be useful:
[Game] created an action, possible to be used but do not yet forced.
Things happens game the game...
[Neuro] try to use the action by herself
[Game] send a force action with only this action (did not yet receive the first neuro action request: communication ping)
[Neuro] received the force action, try to do the action again
[Game] received the first action. Unregister the action
[Game] received second action. It sees that the action is not registered and/or that the action is not possible anymore. So it sends an unsuccessful result.
[Neuro] need to retry this force action as she received an unsuccessful Action Result
(behavior not specified in the API doc in this case, as the action used in force action got unregistered. So she needs to retry a force action with no actions ?)
Another similar scenario would be sending a disposable action and neuro try this action before the force action is received due to comically bad timing
The current workaround is sending a successful action result with an empty message.
(Also Randy, do not currently retry force action with unsuccessful action result.)