You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: rename heartbeat_timeout_seconds to debounce with interval type (#528)
# Replace `heartbeat_timeout_seconds` with `debounce` interval in worker management
This PR changes the worker function debounce mechanism from using an integer seconds field to a proper PostgreSQL interval type. The change:
- Renames `heartbeat_timeout_seconds` to `debounce` in the `worker_functions` table
- Uses the native interval type instead of converting integers to intervals
- Adds a check constraint ensuring debounce is at least 1 second
- Updates all references in functions and comments to use the new field name
- Updates TypeScript type definitions to reflect the schema change
This improves type safety and makes the code more semantically clear by using the proper PostgreSQL data type for time intervals.
0 commit comments