Skip to main content

Overview

The Execution Timeout & Watchdog feature automatically detects and handles workflow executions that exceed their configured deadline. A background watchdog (pg_cron) periodically scans for overdue executions and applies the configured timeout behavior.

Configuration

Global Settings (FW Settings Page)

Navigate to Settings → Forms & Workflow → Timeouts tab to configure:

Per-Workflow Settings (Workflow Editor)

Each workflow definition can override timeout settings via the Timeout Configuration panel in the workflow editor:

Timeout Behaviors


Deadline Extension

Administrators with fw.workflows.admin permission can extend a running execution’s deadline:
  1. Open the execution detail dialog
  2. Click the Extend button next to the deadline indicator
  3. Enter the extension duration (1–1440 minutes) and a reason (minimum 5 characters)
  4. Click Extend Deadline
The extension resets the warning notification flag, allowing a new warning to be sent if the execution approaches the new deadline.

Monitoring

Execution Detail View

The deadline indicator shows real-time status:

Notifications (PF-10)

The watchdog sends two types of notifications:
  1. Timeout Warning — Sent once when an execution reaches the warning threshold
  2. Execution Timed Out — Sent when an execution is terminated due to timeout

pg_cron Setup

The watchdog requires a pg_cron job to be registered. This is not included in migrations (contains environment-specific values). Register via the SQL Editor:
Replace <PROJECT_REF> and <ANON_KEY> with your project values.

Troubleshooting