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

brainix / pottery
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: synchronize-decorator
DEFAULT BRANCH: master
Repo Added 12 Nov 2020 01:04AM UTC
Files 32
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 redlock-decorator
branch: redlock-decorator
CHANGE BRANCH
x
Reset
  • redlock-decorator
  • badges
  • bailoutexecutor-docstring
  • better-logging
  • brainix-patch-1
  • cachedordereddict-docs
  • cachedordereddict-init-args
  • cachedordereddict-timeout
  • codeql-badge
  • contexttimer-improvements
  • coveralls
  • doctest-cleanup
  • doctest-database
  • dont-repeat-myself
  • early-bail-out
  • explicit-redis-client
  • fixed-hyperloglog-update
  • hyperloglog-docs
  • improved-logging
  • improved-makefile
  • improved-readme
  • lua-script-registration
  • make-counter-fix
  • make-requirements
  • make-upgrade
  • master
  • no-early-bail-out
  • num-elements
  • num-tries-type-checks
  • out-of-scope
  • python-3.9.1
  • random-test-database
  • readme-doctests
  • redis-cache-documentation
  • redisdeque-docs
  • rediserrors
  • redlock-del
  • refactored-makefile
  • simpler-hyperloglog-update
  • synchronize-decorator
  • travis-ci-com-migration
  • trove-classifier
  • typing-extensions
  • upgrade-requirements
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.0.5
  • v1.0.6
  • v1.0.7
  • v1.0.8
  • v1.0.9

pending completion
1419

push

travis-ci-com

brainix
Implement and test redlock() decorator

This decorator forces the flow of control through a Redlock, allowing
only one thread to execute the decorated function at a time.

I’d previously implemented this `redlock()` decorator in my
application here: https://github.com/brainix/spool/blob/8f659f0f9/spool/stooges.py#L39-L59

But I think that it’s generic and battle tested enough at this
point to warrant inclusion in this library.

355 of 355 branches covered (100.0%)

Branch coverage included in aggregate %.

44 of 44 new or added lines in 5 files covered. (100.0%)

2823 of 2823 relevant lines covered (100.0%)

4.0 hits per line

Relevant lines Covered
Build:
Build:
2823 RELEVANT LINES 2823 COVERED LINES
4.0 HITS PER LINE
Source Files on redlock-decorator
  • Tree
  • List 32
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1419 redlock-decorator Implement and test redlock() decorator This decorator forces the flow of control through a Redlock, allowing only one thread to execute the decorated function at a time. I’d previously implemented this `redlock()` decorator in my applicati... push 27 Dec 2020 07:13AM UTC brainix travis-ci-com pending completion  
See All Builds (140)
  • Repo on GitHub
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