Scenario: an action (in this case a Go action but it can be in any language actually) find a condition where it cannot continue. For example, an out-of-memory (not at all usual in the constrained environment where an action is executed). What to do then?
I want the action to be destroyed and recreated but how do I notify the error condition when an "/run" is executed? What happens if I return an error code different that 200? In my case, I am trying to decide what to do when the proxy detects that the underlying process died. I am wondering if there are conditions when I should try to restart it or I do better to ask to the Invoker to get rid of the corpse and create a new one. -- Michele Sciabarra [email protected]
