• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

timgit / pg-boss / 19686010876
100%

Build:
DEFAULT BRANCH: master
Ran 25 Nov 2025 10:31PM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Nov 2025 10:28PM UTC coverage: 99.9%. Remained the same
19686010876

push

github

web-flow
Add AbortSignal support to worker job handlers (#622)

Closes https://github.com/timgit/pg-boss/issues/555

Workers now receive an AbortSignal on each job that gets aborted when
the job times out (exceeds expireInSeconds). This allows handlers to:
- Pass the signal to APIs like fetch() for automatic cancellation
- Listen for abort events to cleanup resources
- Check signal.aborted to exit long-running operations early

Implementation:
- Created one AbortController per job batch in manager.ts
- Reused the controller in the existing timeout mechanism via delay()
- Added signal property to Job interface in types.d.ts
- Updated worker documentation with signal property and example
- Added tests to verify signal is provided and aborted on timeout

The signal is automatically aborted by Node's setTimeout when the job
exceeds its expireInSeconds limit, providing a standard way for handlers
to detect and respond to timeouts.

425 of 466 branches covered (91.2%)

7 of 7 new or added lines in 2 files covered. (100.0%)

1000 of 1001 relevant lines covered (99.9%)

132.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-22 - 19686010876.1 25 Nov 2025 10:31PM UTC 11
99.9
GitHub Action Run
Source Files on build 19686010876
  • Tree
  • List 11
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19686010876
  • 63aa9677 on github
  • Prev Build on master (#19685960694)
  • Next Build on master (#19709185102)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc