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

rschmukler / agenda / 244
94%

Build:
DEFAULT BRANCH: master
Ran 11 Feb 2015 01:08AM UTC
Jobs 3
Files 2
Run time 9s
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

pending completion
244

Pull #151

travis-ci

droppedoncaprica
Fix for when _findAndLockNextJob returns multiple jobs.

After working out how Agenda pulls in jobs for processing, I noticed
that the _findAndLockNextJob method could return multiple jobs, which
ends up breaking jobs with the same definition.  The query grabs and
updates the list of jobs whose lock time is passed or should be ran,
meaning if you have multiple of the same jobs running and shut
down the server, it will end up never running those jobs again.

I do need to pick @rschmukler's brain about how to properly get tests
for these methods, as it seems that the methods in question are
private and unreachable using Mocha.

Fixes #131
Pull Request #151: Fix for when _findAndLockNextJob returns multiple jobs.

324 of 343 relevant lines covered (94.46%)

964.62 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
100.0
/home/travis/build/rschmukler/agenda/lib/agenda.js
Jobs
ID Job ID Ran Files Coverage
1 244.1 11 Feb 2015 01:08AM UTC 0
94.17
Travis Job 244.1
2 244.2 11 Feb 2015 01:08AM UTC 0
94.17
Travis Job 244.2
3 244.3 11 Feb 2015 01:08AM UTC 0
94.46
Travis Job 244.3
Source Files on build 244
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #244
  • Pull Request #151
  • PR Base - master (#243)
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