Action object
As such, the Action object only comes into play with tasks that subscribe to mechanic/actions/perform, analyzing the results of action runs, for the purpose of performing follow-up work. Learn more about this technique: Responding to action results.
- Use
{{ action }}
in tasks responding to mechanic/actions/perform
options
– the options with which the action was configuredrun
– an object containing the following attributes, describing the run that was generated by the action's performanceid
– a string containing the UUID for this actionok
– a boolean, true for a successful action run, and false for a failureerror
– either null, or a string containing the error message returned for a failed actionresult
– the data returned from the action; format varies by action typeresult_meta
– an object containing useful performance-related dataattempts
– an integer, indicating the number of times the action was attempted before final success or failureenqueued_at
– the time at which this action was sent to our queue for executionstarted_at
– the time at which the action startedstopped_at
– the time at which the action stoppedelapsed_time_ms
– the number of milliseconds this action required, from start to stop
Last modified 2yr ago