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

collectiveidea / delayed_job
90%
master: 92%

Build:
Build:
LAST BUILD BRANCH: inhouse-active-job-adapter
DEFAULT BRANCH: master
Repo Added 23 Feb 2013 08:33PM UTC
Files 17
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

LAST BUILD ON BRANCH idempotent_instantiation
branch: idempotent_instantiation
CHANGE BRANCH
x
Reset
  • idempotent_instantiation
  • bring-back-3
  • check-test
  • cleanup-test-versions
  • code-reloading
  • master
  • separate-yaml
  • update-testing-dependency-versions
  • v4.0.2
  • v4.0.3
  • v4.0.4
  • v4.0.5
  • v4.0.6
  • v4.1.1
  • v4.1.2

pending completion
432

push

travis-ci

brianhempel
Make Delayed::Worker.new idempotent 

Calling Delayed::Worker.new multiple times would continue to re-add the
plugins to the lifecycle.

Some gems and projects use the pattern `Delayed::Worker.new.work_off` to
trigger delayed jobs in specs. Over time, the callback chain would get
very long and, in our case, caused a StackLevelTooDeep error.

Better would be to have a proper singleton: 

`Delayed::Worker.worker.work_off`

In the absence of a proper singleton, this will make the pattern work.

8 of 8 new or added lines in 1 file covered. (100.0%)

917 of 1023 relevant lines covered (89.64%)

740.72 hits per line

Relevant lines Covered
Build:
Build:
1023 RELEVANT LINES 917 COVERED LINES
740.72 HITS PER LINE
Source Files on idempotent_instantiation
  • List 0
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
432 idempotent_instantiation Make Delayed::Worker.new idempotent Calling Delayed::Worker.new multiple times would continue to re-add the plugins to the lifecycle. Some gems and projects use the pattern `Delayed::Worker.new.work_off` to trigger delayed jobs in specs. Over t... push 30 Jan 2015 06:47PM UTC brianhempel travis-ci pending completion  
430 idempotent_instantiation Make Delayed::Worker.new idempotent Calling Delayed::Worker.new multiple times would continue to re-add the plugins to the lifecycle. Some gems and projects use the pattern `Delayed::Worker.new.work_off` to trigger delayed jobs in specs. Over t... push 30 Jan 2015 12:34AM UTC brianhempel travis-ci pending completion  
See All Builds (656)
  • Repo on GitHub
  • CI Project
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

© 2025 Coveralls, Inc