A workflow in AiTrillion keeps working after it is triggered. When a customer abandons a cart, places an order or joins a list, the workflow starts an execution for that customer and moves them through each step: delays, filters, emails, SMS, WhatsApp messages and so on. Some of these executions can run for hours or days, so at any moment a busy workflow may have many customers part-way through it.
If you turn the workflow off while those executions are still running, they stop where they are and their remaining steps never run. Until now you could not see this before you clicked. With the new Running Execution Warning, AiTrillion checks for ongoing executions first and tells you how many are still running before it disables the workflow.
This article explains what the warning shows and walks you step by step through disabling a workflow, keeping it active, and what to expect when you delete a workflow.
β οΈ A warning before you disable a workflow
β’ When you switch an active workflow to Inactive, AiTrillion checks whether it has executions in progress. If it does, you see the Workflow has running executions warning before anything is changed.
π’ The number of running executions
β’ The warning shows how many executions are running right now, for example 2 running executions. For very busy workflows the count is shown with a plus sign, for example 100+ running executions.
β You choose what happens
β’ Click No, keep it active to leave the workflow running, or Yes, disable to turn it off and stop the running executions.
β’ Better visibility: see how many workflow executions are in progress before you act.
β’ Avoid accidental disruptions: customers who are part-way through a workflow are not cut off by mistake.
β’ Better control: decide whether to keep the workflow active or go ahead and disable it.
β’ The Workflow automation module must be enabled for your store.
β’ The warning appears for a workflow that is already saved and Active. A new workflow that has never been saved has no executions to warn about.
β’ If the workflow has no running executions, there is no warning. It is disabled straight away, as before.
β’ Executions that have already finished are not affected by disabling a workflow. Only executions that are still in progress are counted and stopped.
In the left
navigation, expand Workflow automation and click Workflows. The Workflow
list shows all your workflows. A green dot before a workflow name
means the workflow is active, and a grey dot means it is inactive.
Figure 1: Go to Workflow automation βΊ Workflows and find the active workflow you want to turn off.
Click the
workflow name, or click the three dots (β¦) in the Action column
and choose Edit. The workflow opens in the workflow builder.
Figure 2: Click the three dots in the
Action column and choose Edit.
At the top of
the builder, next to the workflow name, you will see the status switch. While
the workflow is running it reads Active. Click the switch to turn the
workflow off.
Figure 3: Click the Active switch at the
top of the workflow builder.
Note: If the workflow has missing or invalid values, a Workflow warning about them may appear first. Close or confirm that message, and AiTrillion then continues with the running-execution check.
AiTrillion now checks the workflow for ongoing executions. If any are running, the Workflow has running executions warning opens. It tells you:
β’ How many executions are running, for example βThis workflow has 2 running executions.β
β’
What will happen if you continue: βIf you
disable it, they will stop and their remaining steps will not run.β
Figure 4: The warning shows how many
executions are still running in this workflow.
For a workflow
with a large number of customers in progress, the count is shown with a plus
sign, for example 100+ running executions. This means there are at least
that many executions running.
Figure 5: A busy workflow shows the count
with a plus sign, for example 100+.
Note: Nothing has been changed yet at this point. The workflow stays active until you click Yes, disable.
Option A: Keep the workflow running
Click No,
keep it active. The warning closes and nothing is changed: the workflow
stays Active and all running executions continue through their remaining
steps.
Figure 6: Click No, keep it active to
leave the workflow running.
Figure 7: The status switch still reads
Active.
This is the safest choice if customers are in the middle of time-sensitive steps, such as an abandoned-cart reminder that is waiting to be sent. You can come back later, when the count is lower or zero, and disable the workflow then.
Option B: Disable the workflow
Click Yes,
disable if you are sure you want to turn the workflow off now.
Figure 8: Click Yes, disable to turn the
workflow off.
AiTrillion
saves the change and shows Workflow updated successfully. The status
switch now reads Inactive. The running executions stop and their
remaining steps will not run, and the workflow will not start any new
executions until you turn it on again.
Figure 9: The workflow is now Inactive.
You can delete a workflow from the Workflow list. Click the three dots (β¦) in the Action column, choose Delete, and AiTrillion asks you to confirm with an Are you sure? message:
β’ βThis workflow and all metrics related with this will be deleted. Current processing will continue.β
β’
Click No, cancel it! to keep the workflow, or Yes,
delete it! to delete it.
Figure 10: The Are you sure? message when you delete a workflow from the list.
Note: Deleting a workflow also deletes all of its metrics, and it cannot be undone. If you only want to stop a workflow for now, switch it to Inactive instead. You can turn it back on at any time, and its reports are kept.
Note: The running-execution count is checked at the moment you click the switch. Executions that start or finish after that are not reflected in the number on the warning.
Note: Executions stopped by disabling a workflow are not resumed when you turn the workflow back on. Turning it on again only starts new executions for new triggers.
Note: If you change your mind after disabling, switch the workflow back to Active from the same switch in the builder.
Note: Activating a workflow is not affected by this change. The warning is shown only when you disable a workflow that has executions running.
I disabled a workflow but did not see a warning.
β’ The workflow had no executions running at that moment, so it was disabled straight away. This is expected.
I see βSomething went wrong, please try again laterβ when I click the switch.
β’ AiTrillion could not check the running executions, so the workflow was left as it was. Refresh the page and try again. If the message keeps appearing, contact AiTrillion support.
The number on the warning ends with a β+β.
β’ The workflow has more executions running than the warning lists individually. Treat the number as a minimum: at least that many executions will stop if you disable the workflow.
Customers stopped receiving messages after I disabled a workflow.
β’ Disabling a workflow stops its running executions, so their remaining steps (emails, SMS, WhatsApp messages and so on) do not run. Turn the workflow back on to start sending again for new triggers.
Learn how to build and edit workflows in the workflow builder, add triggers, filters and actions, and set throttling so that your automations reach the right customers at the right time.