We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c575a1 commit 62bf7cdCopy full SHA for 62bf7cd
pkgs/website/src/content/docs/how-to/keep-workers-up.mdx
@@ -41,7 +41,7 @@ This approach checks existing worker counts before spawning new ones:
41
WHERE (
42
SELECT COUNT(DISTINCT worker_id) FROM pgflow.workers
43
WHERE function_name = 'your-worker-name'
44
- AND last_heartbeat_at > NOW() - INTERVAL '2 min'
+ AND last_heartbeat_at > NOW() - make_interval(secs => 6)
45
) < 2;
46
$$
47
);
0 commit comments