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

jbielick / faktory_worker_node / 273 / 4
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2020 12:49AM UTC
Files 12
Run time 1s
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

10 Jan 2020 12:45AM UTC coverage: 98.458% (-0.4%) from 98.886%
273.4

push

travis-ci

jbielick
test connection before starting worker pool

starting the worker pool involves each worker (n=concurrency) attempting
to fetch (staggered) very quickly. The connection pool faktory create()
method fails when the connection fails and each worker continuously
retries in a tight loop. This causes 100% CPU usage and excessive log
output. Testing the connection once before starting the worker pool
fetch loop can ensure that a connection can be established before
starting that thundering herd and, if it fails, can reject the
faktory.work() promise immediately and keep things from spinning out of
control.

Thus, one single error will occur and halt the process.

closes #38

89 of 91 branches covered (97.8%)

Branch coverage included in aggregate %.

358 of 363 relevant lines covered (98.62%)

262.91 hits per line

Source Files on job 273.4
  • Tree
  • List 0
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 205
  • Travis Job 273.4
  • 2bfc7622 on github
  • Prev Job for on master (#272.4)
  • Next Job for on master (#274.3)
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