Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/permanently-stalled-escalation.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/worker-result-boundaries.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/worker-startup-handshake.md

This file was deleted.

9 changes: 9 additions & 0 deletions pkgs/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# pgflow

## 0.18.0

### Patch Changes

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

## 0.17.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pgflow",
"version": "0.17.2",
"version": "0.18.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions pkgs/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @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

## 0.17.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion pkgs/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pgflow/client",
"version": "0.17.2",
"version": "0.18.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions pkgs/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @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

## 0.17.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion pkgs/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pgflow/core",
"version": "0.17.2",
"version": "0.18.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions pkgs/dsl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @pgflow/dsl

## 0.18.0

## 0.17.2

## 0.17.1
Expand Down
2 changes: 1 addition & 1 deletion pkgs/dsl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pgflow/dsl",
"version": "0.17.2",
"version": "0.18.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions pkgs/edge-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @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

## 0.17.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions pkgs/edge-worker/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pgflow/edge-worker",
"version": "0.17.2",
"version": "0.18.0",
"license": "Apache-2.0",
"exports": {
".": "./src/index.ts",
Expand All @@ -10,8 +10,8 @@
"@henrygd/queue": "jsr:@henrygd/queue@^1.0.7",
"@std/crypto": "jsr:@std/crypto@^1.0.5",
"postgres": "jsr:@oscar6echo/postgres@3.4.5-d",
"@pgflow/core": "npm:@pgflow/core@0.17.2",
"@pgflow/dsl": "npm:@pgflow/dsl@0.17.2"
"@pgflow/core": "npm:@pgflow/core@0.18.0",
"@pgflow/dsl": "npm:@pgflow/dsl@0.18.0"
},
"publish": {
"include": [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/edge-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pgflow/edge-worker",
"version": "0.17.2",
"version": "0.18.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
Loading