Tags: Demonstration, Orders, Tag
This task illustrates Shopify's recommendation of implementing reconciliation, in the case of missing Shopify events. This implementation handles the rare case that Shopify fails to deliver a webhook (orders/create, in this example), by scanning for unprocessed orders every 15 minutes.
- View in the task library: tasks.mechanic.dev/demonstration-auto-tag-new-orders-with-reconciliation
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"run_on_order_create__boolean": true,
"reconcile_every_15_minutes__boolean": true,
"reconcile_on_manual_run__boolean": true
}
Learn about task options in Mechanic
{% if options.run_on_order_create__boolean %}
shopify/orders/create
{% endif %}
{% if options.reconcile_every_15_minutes__boolean %}
mechanic/scheduler/15min
{% endif %}
{% if options.reconcile_on_manual_run__boolean %}
mechanic/user/trigger
{% endif %}
Learn about event subscriptions in Mechanic
This task illustrates Shopify's recommendation of implementing reconciliation, in the case of missing Shopify events. This implementation handles the rare case that Shopify fails to deliver a webhook (orders/create, in this example), by scanning for unprocessed orders every 15 minutes.
To learn more about this kind of scenario, see https://learn.mechanic.dev/core/shopify/events/reconciling-missing-events.
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!