Demonstration: Performing action runs in sequence, with Mechanic.

Mechanic is a development and ecommerce automation platform for Shopify. :)

Demonstration: Performing action runs in sequence

This task demonstrates Mechanic's opt-in ability to perform a task's generated actions in a sequence, rather than in parallel. To try this task, enable the "Perform action runs in sequence" option, in the task's advanced settings.

Runs Occurs when a user manually triggers the task. Configuration includes fail the sixth action.

15-day free trial – unlimited tasks

Documentation

This task demonstrates Mechanic's opt-in ability to perform a task's generated actions in a sequence, rather than in parallel. To try this task, enable the "Perform action runs in sequence" option, in the task's advanced settings.

Read more: Generating sequences of actions

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Shopifolks, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

(By the way, have you seen our documentation? Have you joined the Slack community?)

Open source
View on GitHub to contribute to this task
Subscriptions
mechanic/user/trigger
Tasks use subscriptions to sign up for specific kinds of events. Learn more
Options
fail the sixth action (boolean)
Code
{% for n in (1..10) %}
  {% if options.fail_the_sixth_action__boolean and n == 6 %}
    {% action "echo", n: n, __error: "!" %}
  {% else %}
    {% action "echo", n: n %}
  {% endif %}
{% endfor %}
Task code is written in Mechanic Liquid, an extension of open-source Liquid enhanced for automation. Learn more