Skip to content

Commit 58d1ed2

Browse files
authored
Fix bad cast in failJobs (#613)
2 parents f42f90b + 16fe6d9 commit 58d1ed2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

RELEASE_NOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ to make sure the system as a whole remains consistent.
1919
Read more:
2020
[Worker Pro Migration](https://worker.graphile.org/docs/pro/migration).
2121

22+
## v0.17.3
23+
24+
Fixes a bad cast (`::int[]` instead of `::bigint[]`) in `failJobs` resulting in
25+
an error being thrown on shutdown for people who have processed more than 2.147
26+
billion jobs with Graphile Worker.
27+
2228
## v0.17.2
2329

2430
Implement `npm pkg fix` hint; also: fix `version` export - was _still_

src/sql/failJobs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ last_error = $2::text,
119119
run_at = greatest(now(), run_at) + (exp(least(attempts, 10)) * interval '1 second'),
120120
locked_by = null,
121121
locked_at = null
122-
where id = any($1::int[]) and locked_by = $3::text
122+
where id = any($1::bigint[]) and locked_by = $3::text
123123
returning *
124124
), queues as (
125125
update ${escapedWorkerSchema}._private_job_queues as job_queues

0 commit comments

Comments
 (0)