What This Workflow Does
This automation solves a common pain point in n8n deployments where workflows don't automatically restart after updates, even if they were previously active. The solution uses the n8n API to identify all workflows with specific tags and automatically restart them, ensuring your business processes continue running seamlessly after any deployment.
For teams managing multiple n8n instances or frequently updating workflows, this automation eliminates hours of manual work checking and restarting workflows. It's particularly valuable for production environments where workflow downtime directly impacts business operations.
How It Works
1. API Authentication
The workflow begins by authenticating with your n8n instance using API credentials stored securely as environment variables.
2. Tag Filtering
It queries the n8n API to retrieve all workflows, then filters them based on your configured tags to identify which ones should be restarted.
3. Status Verification
For each tagged workflow, the automation checks its current status to determine if a restart is needed.
4. Automated Restart
The workflow executes API calls to restart each eligible workflow in sequence, with error handling for any failures.
Pro tip: Use different tags for production vs. development workflows to control which environments get auto-restarted.
Who This Is For
This solution is ideal for:
- IT teams managing multiple n8n instances
- Businesses with mission-critical workflows that can't afford downtime
- Teams performing frequent deployments or updates
- Organizations with complex workflow dependencies
What You'll Need
- An n8n instance with API access enabled
- API credentials with workflow management permissions
- Workflows tagged appropriately for auto-restart
- Environment variables configured for secure credential storage
Quick Setup Guide
- Download and import the JSON template into your n8n instance
- Configure your n8n API credentials as environment variables
- Set the tags you want to use for auto-restart workflows
- Test with a single tagged workflow before full deployment
- Schedule the workflow to run after your deployment process completes
Key Benefits
Eliminates workflow downtime after deployments by automatically restarting critical processes without manual intervention.
Saves administrative time by removing the need to manually check and restart dozens of workflows after each update.
Reduces human error in the deployment process by automating what's often a tedious, repetitive task.
Provides consistency across environments by ensuring all tagged workflows maintain their intended running state.