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_ 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