Action object
The Action object describes an action that was defined, and the run that was performed for that action.
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.
How to access it
Use
{{ action }}
in tasks responding to mechanic/actions/perform
What it contains
type
â a lowercase string, defining the action typeoptions
â 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 updated