From 591c7eec4ac8489d6d8250c50b4043fa858f1bab Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 8 Jul 2026 08:36:28 +0100 Subject: [PATCH 1/2] Fix bad cast in failJobs --- src/sql/failJobs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/failJobs.ts b/src/sql/failJobs.ts index 96bc1d00..51475f67 100644 --- a/src/sql/failJobs.ts +++ b/src/sql/failJobs.ts @@ -119,7 +119,7 @@ last_error = $2::text, run_at = greatest(now(), run_at) + (exp(least(attempts, 10)) * interval '1 second'), locked_by = null, locked_at = null -where id = any($1::int[]) and locked_by = $3::text +where id = any($1::bigint[]) and locked_by = $3::text returning * ), queues as ( update ${escapedWorkerSchema}._private_job_queues as job_queues From 16fe6d98ab8ca73a9c479ee23712aaa17af23573 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 8 Jul 2026 08:43:47 +0100 Subject: [PATCH 2/2] Release notes --- RELEASE_NOTES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 1ccf7cbc..428a6fe5 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -19,6 +19,12 @@ to make sure the system as a whole remains consistent. Read more: [Worker Pro Migration](https://worker.graphile.org/docs/pro/migration). +## v0.17.3 + +Fixes a bad cast (`::int[]` instead of `::bigint[]`) in `failJobs` resulting in +an error being thrown on shutdown for people who have processed more than 2.147 +billion jobs with Graphile Worker. + ## v0.17.2 Implement `npm pkg fix` hint; also: fix `version` export - was _still_