How can I control the run order of actions?

For tasks that generate multiple actions, Mechanic's run system doesn't guarantee the order in which those actions will be run.

To control action run order yourself, render one action at a time and subscribe to mechanic/actions/perform for rendering subsequent actions. When responding to this event, inspect the action variable to see which action should be rendered next in your sequence.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.