Action object
Last updated
Was this helpful?
Last updated
Was this helpful?
The Action object describes an that was defined, and the 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: .
Use {{ action }}
in tasks responding to mechanic/actions/perform
type
â a lowercase string, defining the action type
options
â the options with which the action was configured
run
â an object containing the following attributes, describing the run that was generated by the action's performance
id
â a string containing the UUID for this action
ok
â a boolean, true for a successful action run, and false for a failure
error
â either null, or a string containing the error message returned for a failed action
result
â the data returned from the action; format varies by action type
result_meta
â an object containing useful performance-related data
attempts
â an integer, indicating the number of times the action was attempted before final success or failure
enqueued_at
â the time at which this action was sent to our queue for execution
started_at
â the time at which the action started
stopped_at
â the time at which the action stopped
elapsed_time_ms
â the number of milliseconds this action required, from start to stop