From 56ea053e5bc38ec5431587257844d19ec091235d Mon Sep 17 00:00:00 2001 From: Agent Date: Mon, 23 Nov 2026 19:25:09 +0100 Subject: [PATCH 1/2] docs(website): prepare pgflow 0.17.3 release notes Replace the main-branch recap with release copy for the 0.17.3 scope in Changesets PR #709. Lead with the worker fixes and put the SQL-first rollout warning next to the introduction. Keep the article marked as a draft until the packages ship. Leave the generated News indexes scoped to release announcements. --- .../news/pgflow-0-17-3-worker-reliability.mdx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx diff --git a/pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx b/pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx new file mode 100644 index 000000000..118361062 --- /dev/null +++ b/pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx @@ -0,0 +1,37 @@ +--- +title: 'pgflow 0.17.3: More Reliable Worker Starts and Task Reporting' +description: 'pgflow 0.17.3 prevents duplicate pending Supabase worker starts and keeps task result write errors separate from handler failures. Apply the SQL migration before deploying new workers.' +date: 2026-11-23 +authors: + - jumski +tags: + - release + - bugfix +featured: false +draft: true +--- + +import { Aside } from '@astrojs/starlight/components'; + +pgflow 0.17.3 prevents cron from requesting another Supabase worker start while the first is pending. Flow workers on Supabase, Node, and Bun now report a failed result write separately from a failed step handler. + + + +## Fewer duplicate worker starts + +Cron could send another HTTP request while a worker was still initializing. The [startup handshake](https://github.com/pgflow-dev/pgflow/pull/711) reserves one pending start per Supabase Edge Function in PostgreSQL. A worker claims the reservation when it registers as ready, not when it receives the request. If the request gets lost or startup hangs, the reservation expires after 60 seconds so pgflow can try again. The same check covers authenticated manual starts in production and HTTP starts in local development. Node and Bun process workers do not use it. + +## A reporting error is not a handler failure + +A failed database write could make a successful step handler look like it failed. With the [result reporting fix](https://github.com/pgflow-dev/pgflow/pull/708), the worker makes one attempt to save a successful result, even during shutdown or if logging the result fails. If that write returns an error, pgflow reports it without marking the task as failed or sending the write again: PostgreSQL might already have committed it. + +The fix also preserves `0`, `false`, and `""` as task outputs. Null and missing outputs become JSON `null` rather than SQL `NULL`. From 41b60c088028a30c29a3f031367148cc1ee1c71b Mon Sep 17 00:00:00 2001 From: Agent Date: Tue, 24 Nov 2026 13:17:37 +0100 Subject: [PATCH 2/2] docs(website): add stalled-task recovery to the 0.18.0 notes The recovery changeset is minor, so the fixed package group moves to 0.18.0. Explain how historical stalls follow the step exhaustion policy after upgrade and link to the backlog check. Make the finished article visible in the PR HTML preview. --- ....mdx => pgflow-0-18-0-worker-reliability.mdx} | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) rename pkgs/website/src/content/docs/news/{pgflow-0-17-3-worker-reliability.mdx => pgflow-0-18-0-worker-reliability.mdx} (61%) diff --git a/pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx b/pkgs/website/src/content/docs/news/pgflow-0-18-0-worker-reliability.mdx similarity index 61% rename from pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx rename to pkgs/website/src/content/docs/news/pgflow-0-18-0-worker-reliability.mdx index 118361062..d5d8bd4f8 100644 --- a/pkgs/website/src/content/docs/news/pgflow-0-17-3-worker-reliability.mdx +++ b/pkgs/website/src/content/docs/news/pgflow-0-18-0-worker-reliability.mdx @@ -1,19 +1,19 @@ --- -title: 'pgflow 0.17.3: More Reliable Worker Starts and Task Reporting' -description: 'pgflow 0.17.3 prevents duplicate pending Supabase worker starts and keeps task result write errors separate from handler failures. Apply the SQL migration before deploying new workers.' -date: 2026-11-23 +title: 'pgflow 0.18.0: Worker Reliability and Stalled Task Recovery' +description: 'pgflow 0.18.0 prevents duplicate pending Supabase worker starts, preserves task outcomes, and applies the exhaustion policy when stalled task recovery gives up.' +date: 2026-11-24 authors: - jumski tags: - release - bugfix featured: false -draft: true +draft: false --- import { Aside } from '@astrojs/starlight/components'; -pgflow 0.17.3 prevents cron from requesting another Supabase worker start while the first is pending. Flow workers on Supabase, Node, and Bun now report a failed result write separately from a failed step handler. +pgflow 0.18.0 prevents cron from requesting another Supabase worker start while the first is pending. Flow workers on Supabase, Node, and Bun now report a failed result write separately from a failed step handler. Tasks that run out of recovery requeues now follow their step's `whenExhausted` policy.