timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

Runs the job but gives abort error on Bun #472

Closed PietroDSK closed 2 months ago

PietroDSK commented 3 months ago

So, I'm using pg-boss with bunjs. I'ts all running OK, except that error

18 |       .catch(resolve)
19 |   })
20 | 
21 |   promise.abort = () => {
22 |     if (!ac.signal.aborted) {
23 |       ac.abort()
           ^
error: The operation was aborted
 code: "ABORT_ERR"

      at new AbortError (node:timers/promises:172:27)
      at node:timers/promises:46:35
      at /Users/pietro/Documents/Bemobile/be-synced/node_modules/pg-boss/src/tools.js:23:7
      at /Users/pietro/Documents/Bemobile/be-synced/node_modules/pg-boss/src/manager.js:29:5

Every time that a job runs, this error is returned. The job is completed normally and the server keeps running without problems, someone already experienced this?

timgit commented 3 months ago

Is it related to this issue?

PietroDSK commented 2 months ago

yeah, exactly. Upgrading the version of bun solved the problem. Thanks a lot.