Scheduled Flows
Flowguard allows you to schedule your test flows to run automatically at regular intervals. This ensures your website is continuously tested without manual intervention.
Pro Feature
Scheduled flows require a Pro license. See License & Activation for details.
Why Schedule Flows?
Automated scheduling provides several benefits:
- Continuous Testing - Catch issues before your users do
- After-Hours Monitoring - Tests run even when you're not working
- Regression Detection - Quickly identify when updates break functionality
- Peace of Mind - Know your critical flows are being tested regularly
Schedule Options
Flowguard offers flexible scheduling intervals:
| Schedule | Interval | Best For |
|---|---|---|
| Every 30 Minutes | 30 min | Critical checkout flows, high-traffic sites |
| Every Hour | 1 hour | Important forms, authentication flows |
| Every 6 Hours | 6 hours | Standard testing, balanced approach |
| Every 12 Hours | 12 hours | Daily routines, less critical flows |
| Once Daily | 24 hours | Comprehensive site checks |
| Once Weekly | 7 days | Low-priority flows, smoke tests |
Setting Up Scheduled Flows
Method 1: Global Schedule (All Active Flows)
Set up a schedule that runs all your active flows automatically:
- Go to Flowguard > Settings
- Click the Auto Run tab
- Find the Scheduled Runs section
- Toggle Enable Scheduled Runs to ON
- Select your preferred schedule interval
- Click Save Settings
All flows marked as "Active" will run at the scheduled times.
Method 2: Individual Flow Schedules
Set up a custom schedule for a specific flow:
- Go to Flowguard > Flows
- Click on the flow you want to schedule
- In the Flow Editor, open Flow Settings
- Find the Schedule section
- Toggle Enable Schedule to ON
- Choose to use the global schedule or set a custom one
- If custom, select your preferred interval
- Save the flow
TIP
Individual schedules override the global schedule for that specific flow.
Understanding Schedule Behavior
When Flows Run
Scheduled flows begin execution at the specified intervals, starting from when you enable the schedule. For example:
- Enable at 2:00 PM with "Every Hour" = Next run at 3:00 PM
- Enable at 2:00 PM with "Every 6 Hours" = Next run at 8:00 PM
What Happens During Execution
When a scheduled run triggers:
- Flowguard checks which flows should run
- Each flow executes in sequence
- Results are saved to each flow's history
- If a flow fails, notifications are sent (if enabled)
- The dashboard updates with new results
Viewing Next Run Time
To see when flows will next run:
- Go to Flowguard > Settings > Auto Run
- Look for "Next scheduled run" information
- The time is displayed in your local timezone
Or check via the REST API:
GET /wp-json/flowguard/v1/cron/schedule-infoEmail Notifications
Get notified when scheduled flows fail:
Enabling Notifications
- Go to Flowguard > Settings
- Click the Notifications tab
- Toggle Flow Failure Alerts to ON
- Enter your email address (or leave blank for admin email)
- Save settings
What's Included in Alerts
Failure notification emails include:
- Flow name that failed
- Error message and details
- Which steps failed
- Execution timestamp
- Link to view full results in WordPress
Example Email
Subject: [Your Site] Flow Test Failed: Login Form Test
Hello,
A Flowguard test has failed on your website.
---
Flow: Login Form Test
Site: Your Website
URL: https://yoursite.com
Time: December 27, 2025 10:30 AM
Error:
Element not found: #login-button
Failed Steps:
- Click Login Button: Element not found
Execution Time: 12 seconds
---
You can view the flow details here:
https://yoursite.com/wp-admin/admin.php?page=flowguard#/flows/123
---
This is an automated message from Flowguard.
You can disable these alerts in Flowguard > Settings > Notifications.Best Practices
Choose Appropriate Intervals
- Critical flows (checkout, login): Every 30 minutes to 1 hour
- Important flows (contact forms): Every 6-12 hours
- Routine checks (navigation, links): Daily or weekly
Keep Flows Focused
Shorter, focused flows:
- Execute faster
- Are easier to debug when they fail
- Provide more specific failure information
Monitor Results Regularly
Even with automation:
- Check the dashboard weekly
- Review failed flow patterns
- Update flows when your site changes
Test After Major Updates
After WordPress core, theme, or plugin updates:
- Run all flows manually first
- Check for failures due to changed elements
- Update selectors if needed
- Resume scheduled runs
Use Test Mode
Always keep Test Mode enabled for scheduled runs to prevent:
- Accidental form submissions
- Real email sending
- Database modifications
Troubleshooting
Scheduled Flows Not Running
Check 1: WordPress Cron
Flowguard uses WordPress cron. Ensure it's working:
// Add to wp-config.php if cron is disabled
define('DISABLE_WP_CRON', false);If your host doesn't support WordPress cron, set up a system cron:
# Run every minute
* * * * * wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1Check 2: License Status
Scheduled flows require an active Pro license:
- Go to Flowguard > License
- Verify your license is active
- Reactivate if needed
Check 3: Schedule Is Enabled
- Go to Flowguard > Settings > Auto Run
- Verify "Enable Scheduled Runs" is ON
- Check that at least one flow is Active
Flows Running But Not Completing
Check 1: Execution Mode
Verify your execution mode is properly configured:
- Go to Flowguard > Settings > Execution
- If using Local API, ensure the server is running
- If using Remote, check your connection
Check 2: Server Resources
Long-running flows may timeout:
- Increase PHP max execution time
- Increase WordPress memory limit
- Check for resource constraints
Check 3: Flow Timeout Settings
Individual flows may have timeout settings:
- Open the flow in the editor
- Check Flow Settings > Timeout
- Increase if flows are timing out
Notifications Not Arriving
Check 1: Email Settings
- Go to Flowguard > Settings > Notifications
- Verify notifications are enabled
- Check the email address is correct
Check 2: WordPress Email
Test if WordPress can send emails:
- Install a mail testing plugin
- Check your SMTP configuration
- Review server mail logs
Check 3: Spam Folder
Check your spam/junk folder for Flowguard emails.
Run History
Viewing History
Each scheduled run is recorded in the flow's history:
- Go to Flowguard > Flows
- Click on any flow
- View the execution history showing:
- Timestamp of each run
- Pass/fail status
- Execution duration
- Trigger type (scheduled vs manual)
History Retention
By default, Flowguard keeps the last 10 runs per flow. Configure this in:
Flowguard > Settings > Auto Run > History Count
REST API for Schedules
Developers can interact with schedules via the REST API:
Get Schedule Info
GET /wp-json/flowguard/v1/cron/schedule-infoResponse:
{
"enabled": true,
"schedule": "daily",
"schedule_label": "Once Daily",
"next_run": "2025-12-28T00:00:00+00:00",
"next_run_human": "12 hours",
"flow_schedules": {
"123": {
"schedule": "hourly",
"next_run": "2025-12-27T13:00:00+00:00"
}
}
}Get Schedule Options
GET /wp-json/flowguard/v1/cron/schedule-optionsResponse:
[
{"value": "flowguard_every_30_minutes", "label": "Every 30 Minutes"},
{"value": "hourly", "label": "Every Hour"},
{"value": "flowguard_every_6_hours", "label": "Every 6 Hours"},
{"value": "flowguard_every_12_hours", "label": "Every 12 Hours"},
{"value": "daily", "label": "Once Daily"},
{"value": "flowguard_weekly", "label": "Once Weekly"}
]Related Documentation
- Running Flows - Manual flow execution
- Settings - Configure all Flowguard settings
- License & Activation - Enable Pro features
- Test Mode - Protect against side effects