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

stores-com / petty-cache / 24945751484
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: feat/throttle
DEFAULT BRANCH: main
Ran 26 Apr 2026 01:57AM UTC
Jobs 1
Files 1
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

26 Apr 2026 01:57AM UTC coverage: 99.812% (-0.2%) from 100.0%
24945751484

Pull #63

github

freshlogic
feat: add throttle — distributed throttle primitive

Coalesces calls for the same key across multiple processes via Redis so
that fn runs at most once per ttl window. The first caller in a window
wins the claim and fn runs to completion; subsequent calls are no-ops.
Errors thrown by fn propagate to the caller — useful for callers that
need to know whether the work succeeded so they can NACK upstream
messages, etc.

Implementation is a single SETNX with PX TTL: claim succeeds, fn runs;
claim fails, return immediately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #63: feat: add throttle — distributed throttle primitive

409 of 410 branches covered (99.76%)

Branch coverage included in aggregate %.

37 of 39 new or added lines in 1 file covered. (94.87%)

1186 of 1188 relevant lines covered (99.83%)

49.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
99.81
-0.19% index.js
Jobs
ID Job ID Ran Files Coverage
1 24945751484.1 26 Apr 2026 01:57AM UTC 1
99.81
GitHub Action Run
Source Files on build 24945751484
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24945751484
  • Pull Request #63
  • PR Base - main (#23544633964)
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