Skip to content

Version Packages - #709

Merged
jumski merged 1 commit into
mainfrom
changeset-release/main
Nov 24, 2026
Merged

jumski merged 1 commit into
mainfrom
changeset-release/main

Conversation

@jumski

@jumski jumski commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@pgflow/core@0.18.0

Minor Changes

  • c8703a4: Terminalize permanently stalled tasks through the step's whenExhausted policy. A new pgflow.escalate_permanently_stalled() function, scheduled as its own pgflow_escalate_permanently_stalled cron job, hands tasks marked with permanently_stalled_at to fail_task(), which now treats the marker as exhaustion regardless of remaining attempts: the run fails, the step skips or cascades per policy, dependents start, and siblings are cancelled or archived. attempts_count stays untouched as committed task claims, and ordinary failure callbacks on a marked task exhaust it instead of requeueing against its archived message. Includes the SQL migration (which preserves an absent or paused recovery cron job and copies the installed recovery interval), generated types, and upgrade guidance with a stamped-backlog inventory query.

Patch Changes

  • f67145b: Preserve handler outcomes when worker logging or task settlement fails, and classify interruption from the worker shutdown signal instead of the exception name. Successful handlers get one completion attempt even during shutdown; settlement errors reach the worker error boundary without replay or conversion into handler failures.

    Preserve falsy task outputs (0, false, and "") and store null or undefined outputs as JSON null instead of SQL NULL.

  • d04b79d: Coordinate pending worker starts with invocation handshakes. ensure_workers() now reserves a unique invocation_id per function under a row lock and enqueues it in one transaction; the HTTP worker start atomically consumes the still-current, unexpired invocation when it registers readiness. Duplicate cron starts, duplicate delivery to independent runtimes, and manual/local requests now share one reservation protocol with a 60-second pending deadline, idempotent acknowledgement, explicit dismissal on failure, and bounded watchdog/SQL-timeout recovery. debounce becomes a retry throttle instead of the correctness mechanism. Includes the SQL migration and generated types; requires applying the migration before deploying new workers.

    • @pgflow/dsl@0.18.0

pgflow@0.18.0

Patch Changes

  • Updated dependencies [c8703a4]
  • Updated dependencies [f67145b]
  • Updated dependencies [d04b79d]
    • @pgflow/core@0.18.0

@pgflow/client@0.18.0

Patch Changes

  • Updated dependencies [c8703a4]
  • Updated dependencies [f67145b]
  • Updated dependencies [d04b79d]
    • @pgflow/core@0.18.0
    • @pgflow/dsl@0.18.0

@pgflow/edge-worker@0.18.0

Patch Changes

  • f67145b: Preserve handler outcomes when worker logging or task settlement fails, and classify interruption from the worker shutdown signal instead of the exception name. Successful handlers get one completion attempt even during shutdown; settlement errors reach the worker error boundary without replay or conversion into handler failures.

    Preserve falsy task outputs (0, false, and "") and store null or undefined outputs as JSON null instead of SQL NULL.

  • d04b79d: Coordinate pending worker starts with invocation handshakes. ensure_workers() now reserves a unique invocation_id per function under a row lock and enqueues it in one transaction; the HTTP worker start atomically consumes the still-current, unexpired invocation when it registers readiness. Duplicate cron starts, duplicate delivery to independent runtimes, and manual/local requests now share one reservation protocol with a 60-second pending deadline, idempotent acknowledgement, explicit dismissal on failure, and bounded watchdog/SQL-timeout recovery. debounce becomes a retry throttle instead of the correctness mechanism. Includes the SQL migration and generated types; requires applying the migration before deploying new workers.

  • Updated dependencies [c8703a4]

  • Updated dependencies [f67145b]

  • Updated dependencies [d04b79d]

    • @pgflow/core@0.18.0
    • @pgflow/dsl@0.18.0

@pgflow/dsl@0.18.0

@nx-cloud

nx-cloud Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 713744e

Command Status Duration Result
nx run edge-worker:test:integration ✅ Succeeded 8m 50s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-24 13:44:09 UTC

@jumski
jumski force-pushed the changeset-release/main branch from 2a709fd to a5724f2 Compare November 23, 2026 18:18
jumski pushed a commit that referenced this pull request Nov 23, 2026
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.
jumski pushed a commit that referenced this pull request Nov 24, 2026
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.
@jumski
jumski force-pushed the changeset-release/main branch from a5724f2 to 713744e Compare November 24, 2026 12:14
@jumski
jumski merged commit 045681b into main Nov 24, 2026
27 of 29 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Production Deployment: Website

✅ Successfully deployed to production!

🔗 Production URL: https://pgflow.dev

📝 Details:

  • Commit: 045681b713a4fa4a4d28a23dc673e4975b3297cc
  • View Logs

Deployed at: 2026-11-24T21:07:42+01:00

jumski pushed a commit that referenced this pull request Nov 24, 2026
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.
jumski added a commit that referenced this pull request Nov 24, 2026
## Summary

```diff
- Prepare the pgflow 0.17.3 worker reliability notes.
+ Prepare the pgflow 0.18.0 notes with the stalled-task recovery fix and upgrade guidance.
```

The minor changeset in #713 moves the fixed package group to 0.18.0 in the release PR: #709. The article covers pending Supabase starts, task result reporting, and how `whenExhausted` now handles permanently stalled tasks.

## Evidence

- **Before:** The preview build omitted the draft article's HTML page.
  **After:** The website build renders the finished article and resolves its link to the stalled-task backlog check.
- Website build, internal links, website lint, and article formatting pass locally.

## Merge Danger

**Door:** two-way  
**Blast Radius:** docs

Keep this PR open until 0.18.0 ships. Set the actual publication date before merging; the current date is for the preview. This PR does not release packages or run a database migration.

This branch was successfully deployed

1 active deployment
preview — 713744ed Deployed Nov 24, 2026 by jumski via deploy-website #3438
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant