pg-boss icon indicating copy to clipboard operation
pg-boss copied to clipboard

feat: introduce output argument to `.cancel()` and `.failWithoutRetry()` to mark jobs as failed without implicitly retrying

Open pcnc opened this issue 1 year ago • 0 comments

Introduces:

  • .cancel(jobId, data)
  • .failWithoutRetry(jobId, data)
    • current implementation of .fail() queues up a retry if retrycount < retrylimit, giving no option of marking job as explicitly failed without further retries down the line

Additionally:

  • Bumps default Postgres container limits to 300 to avoid any max connections exceeded errors during test runs

pcnc avatar Jun 11 '24 08:06 pcnc