Failure handling
If the invoked Cloud Code script or module returned an error response, the action is not retried.
However, in case of an internal problem with the execution of a Cloud Code script or module, the Triggers service retries the execution.
To monitor and debug the execution of your triggers, use Logging.