Skip to main content
D

Darien Kindlund

2
Workflows

Workflows by Darien Kindlund

Workflow preview: Watchdog: Update All Workflows With Default Error Workflow
Free intermediate

Watchdog: Update All Workflows With Default Error Workflow

Do you consistently *forget* to set a Default Error Workflow when creating new workflows? Then this helper workflow is for you! When activated, this helper workflow will: * Scan ALL other workflows every 4 hours * Make sure ALL workflows have a default error workflow set (based on what Workflow ID you provide) * This helper will SKIP OVER any workflows that have the `default_error:false` tag set (make sure your default error workflow has the `default_error:false` tag set, so that you don't end up with recursive loops during errors) Setup Nodes: * Once imported, edit the `Set Vars` node with your `default_error_workflow_id` value. * If you want to change the `default_error:false` tag to some other tag name, you can do so here as well. * You need to update the `Set Default Error Workflow` node with your PostgreSQL credentials to access the `n8n` database.

D
Darien Kindlund
DevOps
9 Mar 2024
1194
0
Workflow preview: Watchdog: Auto Resume Workflows
Free intermediate

Watchdog: Auto Resume Workflows

If you have multiple users managing workflows, there may come a time where a user “accidentally” turns off a workflow. Or, if you have workflows that automatically turn off other workflows, that code might “accidentally” turn off the wrong one. In either case, here’s a workflow that can attempt to “auto-start” accidentally disabled workflows: ![image.png](fileId:776) How it works: When activated, then every 4 hours, the workflow will search all other workflows that have the `auto_resume:true` tag present. If any other workflow has `auto_resume:true` set but is currently turned off, then this workflow will turn it back on. Of course, this watchdog won’t work if the watchdog workflow is turned off. That said, we’ve found this useful in recovering from accidental actions that cause production workflows to be turned off.

D
Darien Kindlund
DevOps
7 Mar 2024
1036
0