This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 9eb197c Added information about statusCode field in activation
records (#4297)
9eb197c is described below
commit 9eb197cdb60a72f67b8c8a7f81413cadc73d54de
Author: Lars Andersson <[email protected]>
AuthorDate: Wed Feb 20 14:39:15 2019 +0100
Added information about statusCode field in activation records (#4297)
---
docs/actions.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/docs/actions.md b/docs/actions.md
index 4c10e8e..7c0f257 100644
--- a/docs/actions.md
+++ b/docs/actions.md
@@ -247,6 +247,14 @@ Each action invocation results in an activation record
which contains the follow
- the action specified a wrong docker container name
- the action did not properly implement the expected [runtime
protocol](actions-new.md)
- *"whisk internal error"*: the system was unable to invoke the action.
+ - `statusCode`: A value between 0 and 3 that maps to the activation result,
as described by the *status* field:
+
+ | statusCode | status |
+ |:---------- |:---------------------- |
+ | 0 | success |
+ | 1 | application error |
+ | 2 | action developer error |
+ | 3 | whisk internal error |
- `success`: Is *true* if and only if the status is *"success"*.
- `result`: A dictionary as a JSON object which contains the activation
result. If the activation was successful, this contains the value that is
returned by the action. If the activation was unsuccessful, `result` contains
the `error` key, generally with an explanation of the failure.