resque-unique_at_runtime 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +149 -0
- data/LICENSE.md +15 -0
- data/README.md +506 -79
- data/lib/resque/plugins/unique_at_runtime.rb +64 -13
- data/lib/resque/unique_at_runtime/configuration.rb +9 -9
- data/lib/resque/unique_at_runtime/version.rb +7 -1
- data/lib/resque/unique_at_runtime.rb +8 -0
- data/lib/resque-unique_at_runtime.rb +8 -9
- data/sig/resque/unique_at_runtime.rbs +8 -0
- data.tar.gz.sig +0 -0
- metadata +230 -64
- metadata.gz.sig +0 -0
- data/.gitignore +0 -17
- data/.rubocop.yml +0 -2
- data/.rubocop_todo.yml +0 -75
- data/.ruby-version +0 -1
- data/.travis.yml +0 -35
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -19
- data/LICENSE +0 -23
- data/Rakefile +0 -10
- data/resque-unique_at_runtime.gemspec +0 -54
data/README.md
CHANGED
|
@@ -1,62 +1,145 @@
|
|
|
1
|
-
|
|
1
|
+
<a href="https://github.com/resque"><img alt="resque Logo by GitHub" src="https://github.com/resque.png?size=192" width="14%" align="right"/></a>
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|------------------------ | ----------------------- |
|
|
5
|
-
| gem name | [resque-unique_at_runtime](https://rubygems.org/gems/resque-unique_at_runtime) |
|
|
6
|
-
| license | [](https://opensource.org/licenses/MIT) |
|
|
7
|
-
| download rank | [](https://github.com/pboling/resque-unique_at_runtime) |
|
|
8
|
-
| version | [](https://rubygems.org/gems/resque-unique_at_runtime) |
|
|
9
|
-
| dependencies | [](https://depfu.com/github/pboling/resque-unique_at_runtime?project_id=4349) |
|
|
10
|
-
| continuous integration | [](https://travis-ci.org/pboling/resque-unique_at_runtime) |
|
|
11
|
-
| test coverage | [](https://codeclimate.com/github/pboling/resque-unique_at_runtime/test_coverage) |
|
|
12
|
-
| maintainability | [](https://codeclimate.com/github/pboling/resque-unique_at_runtime/maintainability) |
|
|
13
|
-
| code triage | [](https://www.codetriage.com/pboling/resque-unique_at_runtime) |
|
|
14
|
-
| homepage | [on Github.com][homepage], [on Railsbling.com][blogpage] |
|
|
15
|
-
| documentation | [on RDoc.info][documentation] |
|
|
16
|
-
| Spread ~♡ⓛⓞⓥⓔ♡~ | [🌍 🌎 🌏](https://about.me/peter.boling), [🍚](https://www.crowdrise.com/helprefugeeswithhopefortomorrowliberia/fundraiser/peterboling), [➕](https://plus.google.com/+PeterBoling/posts), [👼](https://angel.co/peter-boling), [🐛](https://www.topcoder.com/members/pboling/), [:shipit:](http://coderwall.com/pboling), [](http://twitter.com/galtzo) |
|
|
3
|
+
# 💎 Resque::UniqueAtRuntime
|
|
17
4
|
|
|
18
|
-
|
|
19
|
-
[Resque](https://github.com/resque/resque) plugin which ensures for a given
|
|
20
|
-
queue, that only one worker is working on a job at any given time.
|
|
5
|
+
[![Version][👽versioni]][👽version] [![Ruby Users Forum][✉️ruby-forum-top-img]][✉️ruby-forum] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: MIT][📄license-img]][📄license] [![Total downloads][👽dl-ranki]][👽dl-rank] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![Apache SkyWalking Eyes License Compatibility Check][🚎15-🪪-wfi]][🚎15-🪪-wf]
|
|
21
6
|
|
|
22
|
-
|
|
7
|
+
`if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know on Discord][✉️discord-invite] or [RubyForum][✉️ruby-forum], as I may have missed the notification.
|
|
23
8
|
|
|
24
|
-
|
|
9
|
+
---
|
|
25
10
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
However, you can use both runtime and queue-time uniqueness together in the same project.
|
|
11
|
+
`if ci_badges.map(&:color).all? { it == "green"}` 👇️ send money so I can do more of this. FLOSS maintenance is now my full-time job.
|
|
29
12
|
|
|
30
|
-
|
|
13
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
31
14
|
|
|
32
|
-
|
|
33
|
-
the
|
|
34
|
-
[reenqueue](https://github.com/pboling/resque-unique_at_runtime/blob/master/lib/resque-unique_at_runtime.rb#L35).
|
|
35
|
-
(See Example #2 for an alternative approach that attempts to preserve job
|
|
36
|
-
ordering but introduces the possibility of starvation.)
|
|
15
|
+
<details markdown="1">
|
|
16
|
+
<summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
|
|
37
17
|
|
|
38
|
-
|
|
39
|
-
redis list distinct from the Resque queue (see Example #3).
|
|
18
|
+
I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
|
|
40
19
|
|
|
41
|
-
|
|
20
|
+
</details>
|
|
42
21
|
|
|
43
|
-
|
|
22
|
+
## 🌻 Synopsis <a href="https://discord.gg/3qme4XHNKN"><img alt="Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px.svg" width="8%" align="right"/></a> <a href="https://ruby-toolbox.com"><img alt="ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5" src="https://logos.galtzo.com/assets/images/ruby-lang/avatar-128px.svg" width="8%" align="right"/></a>
|
|
44
23
|
|
|
45
|
-
|
|
24
|
+
`resque-unique_at_runtime` prevents more than one worker from performing the same class of work at once. A job including `Resque::Plugins::UniqueAtRuntime` obtains a Redis lock before `perform`; when the lock is held, the job is re-enqueued after a short delay.
|
|
46
25
|
|
|
47
|
-
|
|
26
|
+
By default the uniqueness key is the Resque queue. Override `unique_at_runtime_redis_key(*args)` when uniqueness should be per account, tenant, or resource instead of per queue.
|
|
48
27
|
|
|
49
|
-
|
|
28
|
+
## 💡 Info you can shake a stick at
|
|
50
29
|
|
|
51
|
-
|
|
30
|
+
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
31
|
+
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
32
|
+
| Works with JRuby | [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎jruby-9.2-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎jruby-9.3-wf] <br/> [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎jruby-9.4-wf] [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
|
|
33
|
+
| Works with Truffle Ruby | [![Truffle Ruby 22.3 Compat][💎truby-22.3i]][🚎truby-22.3-wf] [![Truffle Ruby 23.0 Compat][💎truby-23.0i]][🚎truby-23.0-wf] [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎truby-23.1-wf] <br/> [![Truffle Ruby 24.2 Compat][💎truby-24.2i]][🚎truby-24.2-wf] [![Truffle Ruby 25.0 Compat][💎truby-25.0i]][🚎truby-25.0-wf] [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf] [![Truffle Ruby HEAD Compat][💎truby-headi]][🚎3-hd-wf]|
|
|
34
|
+
| Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
|
|
35
|
+
| Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
|
|
36
|
+
| Works with MRI Ruby 2 | ![Ruby 2.3 Compat][💎ruby-2.3i] <br/> [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
|
|
37
|
+
| Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork] [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor] |
|
|
38
|
+
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
|
|
39
|
+
| Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
|
|
40
|
+
| Compliance | [![License: MIT][📄license-img]][📄license] [![Apache license compatibility: Category A][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
|
|
41
|
+
| Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
|
|
42
|
+
| Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼♂️devto-img]][💖💁🏼♂️devto] |
|
|
43
|
+
| `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼♂️aboutme-img]][💖💁🏼♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
|
|
52
44
|
|
|
53
|
-
|
|
45
|
+
### Compatibility
|
|
54
46
|
|
|
55
|
-
|
|
47
|
+
Compatible with MRI Ruby 2.3.0+, JRuby, and TruffleRuby.
|
|
48
|
+
CI workflows and Appraisals are generated for MRI Ruby 2.4+.
|
|
49
|
+
This test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml` and
|
|
50
|
+
may be higher than the gem's runtime compatibility floor when legacy Rubies are
|
|
51
|
+
not practical for the current toolchain.
|
|
56
52
|
|
|
57
|
-
|
|
53
|
+
<a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
56
|
+
|
|
57
|
+
<details markdown="1">
|
|
58
|
+
<summary>How kettle-dev manages complexity in tests</summary>
|
|
59
|
+
|
|
60
|
+
| Gem | Source | Role | Total downloads |
|
|
61
|
+
|-----|--------|------|---------------------|
|
|
62
|
+
| [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [](https://clickgems.clickhouse.com/dashboard/appraisal2) |
|
|
63
|
+
| [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
|
|
64
|
+
| [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
|
|
65
|
+
| [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
|
|
66
|
+
| [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
|
|
67
|
+
| [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [](https://clickgems.clickhouse.com/dashboard/kettle-test) |
|
|
68
|
+
| [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
|
|
69
|
+
| [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
|
|
70
|
+
|
|
71
|
+
</details>
|
|
72
|
+
|
|
73
|
+
### Federated DVCS
|
|
74
|
+
|
|
75
|
+
<details markdown="1">
|
|
76
|
+
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
77
|
+
|
|
78
|
+
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
79
|
+
|-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
|
|
80
|
+
| 🧪 [resque/resque-unique_at_runtime on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
81
|
+
| 🧊 [resque/resque-unique_at_runtime on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
82
|
+
| 🐙 [resque/resque-unique_at_runtime on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
83
|
+
|
|
84
|
+
</details>
|
|
85
|
+
|
|
86
|
+
### Enterprise Support
|
|
87
|
+
|
|
88
|
+
[](https://tidelift.com/subscription/pkg/rubygems-resque-unique_at_runtime?utm_source=rubygems-resque-unique_at_runtime&utm_medium=referral&utm_campaign=readme)
|
|
89
|
+
|
|
90
|
+
Available as part of the Tidelift Subscription.
|
|
91
|
+
|
|
92
|
+
<details markdown="1">
|
|
93
|
+
<summary>Need enterprise-level guarantees?</summary>
|
|
94
|
+
|
|
95
|
+
The maintainers of this and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
|
96
|
+
|
|
97
|
+
[![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]
|
|
98
|
+
|
|
99
|
+
- 💡Subscribe for support guarantees covering _all_ your FLOSS dependencies
|
|
100
|
+
- 💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]
|
|
101
|
+
- 💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers
|
|
102
|
+
|
|
103
|
+
Alternatively:
|
|
104
|
+
|
|
105
|
+
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
106
|
+
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
107
|
+
- [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork]
|
|
108
|
+
- [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor]
|
|
109
|
+
|
|
110
|
+
</details>
|
|
111
|
+
|
|
112
|
+
## ✨ Installation
|
|
113
|
+
|
|
114
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
115
|
+
|
|
116
|
+
```console
|
|
117
|
+
bundle add resque-unique_at_runtime
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
121
|
+
|
|
122
|
+
```console
|
|
123
|
+
gem install resque-unique_at_runtime
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## ⚙️ Configuration
|
|
127
|
+
|
|
128
|
+
Configure application defaults before workers start:
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
Resque::UniqueAtRuntime.configure do |config|
|
|
132
|
+
config.lock_timeout = 5 * 24 * 60 * 60
|
|
133
|
+
config.requeue_interval = 1
|
|
134
|
+
config.unique_at_runtime_key_base = "r-uar"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
`lock_timeout` is the recovery timeout for a stale lock, so it must exceed the longest expected job duration. `requeue_interval` is the wait before a contested job is re-enqueued. Jobs may override these values with `@runtime_lock_timeout`, `@runtime_requeue_interval`, and `@unique_at_runtime_key_base`.
|
|
139
|
+
|
|
140
|
+
Keep the key base global for the application. Set `RESQUE_DEBUG=true` (or a value containing `runtime`) to enable plugin debug logging.
|
|
141
|
+
|
|
142
|
+
## 🔧 Basic Usage
|
|
60
143
|
|
|
61
144
|
`resque-unique_at_runtime` utilizes 3 class instance variables that can be set
|
|
62
145
|
in your Jobs, in addition to the standard `@queue`. Here they are, with their
|
|
@@ -65,7 +148,7 @@ default values:
|
|
|
65
148
|
```ruby
|
|
66
149
|
@runtime_lock_timeout = 60 * 60 * 24 * 5
|
|
67
150
|
@runtime_requeue_interval = 1
|
|
68
|
-
@unique_at_runtime_key_base =
|
|
151
|
+
@unique_at_runtime_key_base = "r-uar".freeze
|
|
69
152
|
```
|
|
70
153
|
|
|
71
154
|
The last one, in normal circumstances, shouldn't be set as different per class,
|
|
@@ -74,7 +157,7 @@ or uniqueness cleanup becomes more difficult.
|
|
|
74
157
|
It should be set only once, globally:
|
|
75
158
|
|
|
76
159
|
```ruby
|
|
77
|
-
Resque::UniqueAtRuntime.configuration.unique_at_runtime_key_base =
|
|
160
|
+
Resque::UniqueAtRuntime.configuration.unique_at_runtime_key_base = "my-custom"
|
|
78
161
|
```
|
|
79
162
|
|
|
80
163
|
#### Example #1 -- One job running per queue
|
|
@@ -144,7 +227,6 @@ where you have three jobs in the queue with two resque workers:
|
|
|
144
227
|
for this job and
|
|
145
228
|
subsequent ones
|
|
146
229
|
|
|
147
|
-
|
|
148
230
|
When the first worker grabs job 1, it'll acquire the mutex for processing
|
|
149
231
|
redis\_key A. The second worker tries to grab the next job off the queue but
|
|
150
232
|
is unable to acquire the mutex for redis\_key A so it places job 2 back at the
|
|
@@ -200,7 +282,6 @@ the cpu to perform other work.
|
|
|
200
282
|
This can be customized using a ```@runtime_requeue_interval``` class instance variable
|
|
201
283
|
in your job like so:
|
|
202
284
|
|
|
203
|
-
|
|
204
285
|
require 'resque-unique_at_runtime'
|
|
205
286
|
|
|
206
287
|
class StrictlySerialJob
|
|
@@ -224,50 +305,396 @@ It can tell you if a job with a specific signature is running, based on the
|
|
|
224
305
|
Caveat: It can be difficult to get the signature right, especially if you have
|
|
225
306
|
tools that enhance job signatures with options.
|
|
226
307
|
|
|
227
|
-
##
|
|
308
|
+
## 🦷 FLOSS Funding
|
|
228
309
|
|
|
229
|
-
|
|
310
|
+
While resque tools are free software and will always be, the project would benefit immensely from some funding.
|
|
311
|
+
Raising a monthly budget of... "dollars" would make the project more sustainable.
|
|
230
312
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
|
235
|
-
5. Create new Pull Request
|
|
313
|
+
We welcome both individual and corporate sponsors! We also offer a
|
|
314
|
+
wide array of funding channels to account for your preferences.
|
|
315
|
+
Currently, [Open Collective][🖇osc] is our preferred funding platform.
|
|
236
316
|
|
|
237
|
-
|
|
317
|
+
**If you're working in a company that's making significant use of resque tools we'd
|
|
318
|
+
appreciate it if you suggest to your company to become a resque sponsor.**
|
|
238
319
|
|
|
239
|
-
|
|
320
|
+
You can support the development of resque tools via
|
|
321
|
+
[GitHub Sponsors][🖇sponsor],
|
|
322
|
+
[Liberapay][⛳liberapay],
|
|
323
|
+
[PayPal][🖇paypal],
|
|
324
|
+
[Open Collective][🖇osc]
|
|
325
|
+
and [Tidelift][🏙️entsup-tidelift].
|
|
240
326
|
|
|
241
|
-
|
|
327
|
+
| 📍 NOTE |
|
|
328
|
+
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
329
|
+
| If doing a sponsorship in the form of donation is problematic for your company <br/> from an accounting standpoint, we'd recommend the use of Tidelift, <br/> where you can get a support-like subscription instead. |
|
|
242
330
|
|
|
243
|
-
|
|
244
|
-
Violations of this scheme should be reported as bugs. Specifically,
|
|
245
|
-
if a minor or patch version is released that breaks backward
|
|
246
|
-
compatibility, a new version should be immediately released that
|
|
247
|
-
restores compatibility. Breaking changes to the public API will
|
|
248
|
-
only be introduced with new major versions.
|
|
331
|
+
### Open Collective for Individuals
|
|
249
332
|
|
|
250
|
-
|
|
251
|
-
dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
333
|
+
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/resque#backer)]
|
|
252
334
|
|
|
253
|
-
|
|
335
|
+
NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
|
|
254
336
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
337
|
+
<!-- OPENCOLLECTIVE-INDIVIDUALS:START -->
|
|
338
|
+
No backers yet. Be the first!
|
|
339
|
+
<!-- OPENCOLLECTIVE-INDIVIDUALS:END -->
|
|
340
|
+
|
|
341
|
+
### Open Collective for Organizations
|
|
342
|
+
|
|
343
|
+
Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/resque#sponsor)]
|
|
344
|
+
|
|
345
|
+
NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
|
|
346
|
+
|
|
347
|
+
<!-- OPENCOLLECTIVE-ORGANIZATIONS:START -->
|
|
348
|
+
No sponsors yet. Be the first!
|
|
349
|
+
<!-- OPENCOLLECTIVE-ORGANIZATIONS:END -->
|
|
350
|
+
|
|
351
|
+
[kettle-readme-backers]: https://github.com/resque/resque-unique_at_runtime/blob/main/bin/kettle-readme-backers
|
|
352
|
+
|
|
353
|
+
### Another way to support open-source
|
|
354
|
+
|
|
355
|
+
I’m driven by a passion to foster a thriving open-source community – a space where people can tackle complex problems, no matter how small. Revitalizing libraries that have fallen into disrepair, and building new libraries focused on solving real-world challenges, are my passions. I was recently affected by layoffs, and the tech jobs market is unwelcoming. I’m reaching out here because your support would significantly aid my efforts to provide for my family, and my farm (11 🐔 chickens, 2 🐶 dogs, 3 🐰 rabbits, 8 🐈 cats).
|
|
356
|
+
|
|
357
|
+
If you work at a company that uses my work, please encourage them to support me as a corporate sponsor. My work on gems you use might show up in `bundle fund`.
|
|
358
|
+
|
|
359
|
+
I’m developing a new library, [floss_funding][🖇floss-funding-gem], designed to empower open-source developers like myself to get paid for the work we do, in a sustainable way. Please give it a look.
|
|
360
|
+
|
|
361
|
+
**[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
|
|
362
|
+
|
|
363
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate to my FLOSS efforts at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
364
|
+
|
|
365
|
+
## 🔐 Security
|
|
366
|
+
|
|
367
|
+
See [SECURITY.md][🔐security].
|
|
368
|
+
|
|
369
|
+
## 🤝 Contributing
|
|
370
|
+
|
|
371
|
+
If you need some ideas of where to help, you could work on adding more code coverage,
|
|
372
|
+
check [issues][🤝gh-issues] or [PRs][🤝gh-pulls], or use the gem and think about how it could be better.
|
|
373
|
+
|
|
374
|
+
We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
|
|
375
|
+
|
|
376
|
+
See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
|
|
258
377
|
|
|
259
|
-
|
|
378
|
+
### 🚀 Release Instructions
|
|
260
379
|
|
|
261
|
-
|
|
262
|
-
* Copyright (c) 2017 - 2018 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
|
380
|
+
See [CONTRIBUTING.md][🤝contributing].
|
|
263
381
|
|
|
264
|
-
|
|
382
|
+
### Code Coverage
|
|
383
|
+
|
|
384
|
+
<details markdown="1">
|
|
385
|
+
<summary>Coverage service badges</summary>
|
|
386
|
+
|
|
387
|
+
[![Coverage Graph][🏀codecov-g]][🏀codecov]
|
|
388
|
+
|
|
389
|
+
[![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls]
|
|
390
|
+
|
|
391
|
+
[![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov]
|
|
392
|
+
|
|
393
|
+
</details>
|
|
394
|
+
|
|
395
|
+
### 🪇 Code of Conduct
|
|
396
|
+
|
|
397
|
+
Everyone interacting with this project's codebases, issue trackers,
|
|
398
|
+
chat rooms and mailing lists agrees to follow the [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct].
|
|
399
|
+
|
|
400
|
+
## 🌈 Contributors
|
|
401
|
+
|
|
402
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
|
403
|
+
|
|
404
|
+
Made with [contributors-img][🖐contrib-rocks].
|
|
405
|
+
|
|
406
|
+
Also see GitLab Contributors: [https://gitlab.com/resque/resque-unique_at_runtime/-/graphs/main][🚎contributors-gl]
|
|
407
|
+
|
|
408
|
+
## 📌 Versioning
|
|
409
|
+
|
|
410
|
+
This library follows [![Semantic Versioning 2.0.0][📌semver-img]][📌semver] for its public API where practical.
|
|
411
|
+
For most applications, prefer the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
|
|
412
|
+
|
|
413
|
+
For example:
|
|
414
|
+
|
|
415
|
+
```ruby
|
|
416
|
+
spec.add_dependency("resque-unique_at_runtime", "~> 4.0")
|
|
417
|
+
```
|
|
265
418
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
419
|
+
<details markdown="1">
|
|
420
|
+
<summary>📌 Is "Platform Support" part of the public API? More details inside.</summary>
|
|
421
|
+
|
|
422
|
+
Dropping support for a platform can be a breaking change for affected users.
|
|
423
|
+
If a release changes supported platforms, it should be called out clearly in the changelog and versioned with that impact in mind.
|
|
424
|
+
|
|
425
|
+
To get a better understanding of how SemVer is intended to work over a project's lifetime,
|
|
426
|
+
read this article from the creator of SemVer:
|
|
427
|
+
|
|
428
|
+
- ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
|
|
429
|
+
|
|
430
|
+
</details>
|
|
431
|
+
|
|
432
|
+
See [CHANGELOG.md][📌changelog] for a list of releases.
|
|
433
|
+
|
|
434
|
+
## 📄 License
|
|
435
|
+
|
|
436
|
+
The gem is available as open source under the terms of
|
|
437
|
+
the [MIT](https://github.com/resque/resque-unique_at_runtime/blob/main/MIT.md) [![License: MIT][📄license-img]][📄license-ref].
|
|
438
|
+
|
|
439
|
+
### © Copyright
|
|
440
|
+
|
|
441
|
+
See [LICENSE.md][📄license] for the official copyright notice.
|
|
442
|
+
|
|
443
|
+
<details markdown="1">
|
|
444
|
+
<summary>Copyright holders</summary>
|
|
445
|
+
|
|
446
|
+
- Copyright (c) 2012-2014 Jonathan R. Wallace
|
|
447
|
+
- Copyright (c) 2013 Tatsuhiko Miyagawa
|
|
448
|
+
- Copyright (c) 2014 Lance Woodson
|
|
449
|
+
- Copyright (c) 2017-2018, 2026 Peter H. Boling
|
|
450
|
+
- Copyright (c) 2020 Daniel Cunha
|
|
451
|
+
- Copyright (c) 2024 jiikko
|
|
452
|
+
|
|
453
|
+
</details>
|
|
454
|
+
|
|
455
|
+
## 🤑 A request for help
|
|
456
|
+
|
|
457
|
+
Maintainers have teeth and need to pay their dentists.
|
|
458
|
+
After getting laid off in an RIF in March, and encountering difficulty finding a new one,
|
|
459
|
+
I began spending most of my time building open source tools.
|
|
460
|
+
I'm hoping to be able to pay for my kids' health insurance this month,
|
|
461
|
+
so if you value the work I am doing, I need your support.
|
|
462
|
+
Please consider sponsoring me or the project.
|
|
463
|
+
|
|
464
|
+
To join the community or get help, use the RubyForum or Discord.
|
|
465
|
+
|
|
466
|
+
[![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
467
|
+
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
468
|
+
|
|
469
|
+
To say "thanks!" ☝️ Join the community or 👇️ send money.
|
|
470
|
+
|
|
471
|
+
[![Sponsor resque/resque-unique_at_runtime on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
|
|
472
|
+
|
|
473
|
+
### Please give the project a star ⭐ ♥.
|
|
474
|
+
|
|
475
|
+
Many parts of this project are actively managed by a [kettle-jem](https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/kettle-jem) smart template utilizing [StructuredMerge.org](https://structuredmerge.org) merge contracts.
|
|
476
|
+
|
|
477
|
+
Thanks for RTFM. ☺️
|
|
478
|
+
|
|
479
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
|
|
480
|
+
[⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
|
|
481
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
|
482
|
+
[🖇osc-all-img]: https://img.shields.io/opencollective/all/resque
|
|
483
|
+
[🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/resque
|
|
484
|
+
[🖇osc-backers-img]: https://img.shields.io/opencollective/backers/resque
|
|
485
|
+
[🖇osc-backers]: https://opencollective.com/resque#backer
|
|
486
|
+
[🖇osc-backers-i]: https://opencollective.com/resque/backers/badge.svg?style=flat
|
|
487
|
+
[🖇osc-sponsors]: https://opencollective.com/resque#sponsor
|
|
488
|
+
[🖇osc-sponsors-i]: https://opencollective.com/resque/sponsors/badge.svg?style=flat
|
|
489
|
+
[🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/resque?style=for-the-badge
|
|
490
|
+
[🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/resque?style=for-the-badge
|
|
491
|
+
[🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/resque?style=for-the-badge
|
|
492
|
+
[🖇osc]: https://opencollective.com/resque
|
|
493
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
|
494
|
+
[🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
|
|
495
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
496
|
+
[🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
|
|
497
|
+
[🖇kofi]: https://ko-fi.com/pboling
|
|
498
|
+
[🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
|
|
499
|
+
[🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
|
|
500
|
+
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
|
501
|
+
[🖇paypal-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&logo=paypal
|
|
502
|
+
[🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
|
|
503
|
+
[🖇paypal]: https://www.paypal.com/paypalme/peterboling
|
|
504
|
+
[🖇floss-funding.dev]: https://floss-funding.dev
|
|
505
|
+
[🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
|
|
506
|
+
[✉️discord-invite]: https://discord.gg/3qme4XHNKN
|
|
507
|
+
[✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
|
|
508
|
+
[✉️ruby-friends-img]: https://img.shields.io/badge/daily.dev-%F0%9F%92%8E_Ruby_Friends-0A0A0A?style=for-the-badge&logo=dailydotdev&logoColor=white
|
|
509
|
+
[✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
|
|
510
|
+
[✉️ruby-forum-top-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=flat&logo=discourse&label=Ruby%20Users%20Forum
|
|
511
|
+
[✉️ruby-forum-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=for-the-badge&logo=discourse&label=Ruby%20Users%20Forum
|
|
512
|
+
[✉️ruby-forum]: https://www.rubyforum.org/tag/resque
|
|
513
|
+
|
|
514
|
+
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
|
515
|
+
[⛳️gem-namespace]: https://github.com/resque/resque-unique_at_runtime
|
|
516
|
+
[⛳️namespace-img]: https://img.shields.io/badge/namespace-Resque::UniqueAtRuntime-3C2D2D.svg?style=square&logo=ruby&logoColor=white
|
|
517
|
+
[⛳️gem-name]: https://clickgems.clickhouse.com/dashboard/resque-unique_at_runtime
|
|
518
|
+
[⛳️name-img]: https://img.shields.io/badge/name-resque--unique__at__runtime-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
|
|
519
|
+
[⛳️tag-img]: https://img.shields.io/github/tag/resque/resque-unique_at_runtime.svg
|
|
520
|
+
[⛳️tag]: https://github.com/resque/resque-unique_at_runtime/releases
|
|
521
|
+
[🚂maint-blog]: http://www.railsbling.com/tags/resque-unique_at_runtime
|
|
522
|
+
[🚂maint-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
|
|
523
|
+
[🚂maint-contact]: http://www.railsbling.com/contact
|
|
524
|
+
[🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|
|
525
|
+
[💖🖇linkedin]: http://www.linkedin.com/in/peterboling
|
|
526
|
+
[💖🖇linkedin-img]: https://img.shields.io/badge/LinkedIn-Profile-0B66C2?style=flat&logo=newjapanprowrestling
|
|
527
|
+
[💖✌️wellfound]: https://wellfound.com/u/peter-boling
|
|
528
|
+
[💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
|
|
529
|
+
[💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
|
|
530
|
+
[💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
|
|
531
|
+
[💖🐘ruby-mast]: https://ruby.social/@galtzo
|
|
532
|
+
[💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https://ruby.social&style=flat&logo=mastodon&label=Ruby%20@galtzo
|
|
533
|
+
[💖🦋bluesky]: https://bsky.app/profile/galtzo.com
|
|
534
|
+
[💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
|
|
535
|
+
[💖🌳linktree]: https://linktr.ee/galtzo
|
|
536
|
+
[💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
|
|
537
|
+
[💖💁🏼♂️devto]: https://dev.to/galtzo
|
|
538
|
+
[💖💁🏼♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
|
|
539
|
+
[💖💁🏼♂️aboutme]: https://about.me/peter.boling
|
|
540
|
+
[💖💁🏼♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
|
|
541
|
+
[💖🧊berg]: https://codeberg.org/pboling
|
|
542
|
+
[💖🐙hub]: https://github.org/pboling
|
|
543
|
+
[💖🛖hut]: https://sr.ht/~galtzo/
|
|
544
|
+
[💖🧪lab]: https://gitlab.com/pboling
|
|
545
|
+
[👨🏼🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
|
|
546
|
+
[👨🏼🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
|
|
547
|
+
[👨🏼🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
|
548
|
+
[👨🏼🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
|
|
549
|
+
[🏙️entsup-tidelift]: https://tidelift.com/subscription/pkg/rubygems-resque-unique_at_runtime?utm_source=rubygems-resque-unique_at_runtime&utm_medium=referral&utm_campaign=readme
|
|
550
|
+
[🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
|
|
551
|
+
[🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
|
|
552
|
+
[💁🏼♂️peterboling]: http://www.peterboling.com
|
|
553
|
+
[🚂railsbling]: http://www.railsbling.com
|
|
554
|
+
[📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
|
|
555
|
+
[📜src-gl]: https://gitlab.com/resque/resque-unique_at_runtime
|
|
556
|
+
[📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
|
|
557
|
+
[📜src-cb]: https://codeberg.org/resque/resque-unique_at_runtime
|
|
558
|
+
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=GitHub&logoColor=green
|
|
559
|
+
[📜src-gh]: https://github.com/resque/resque-unique_at_runtime
|
|
560
|
+
[📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
561
|
+
[📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
562
|
+
[📜gl-wiki]: https://gitlab.com/resque/resque-unique_at_runtime/-/wikis/home
|
|
563
|
+
[📜gh-wiki]: https://github.com/resque/resque-unique_at_runtime/wiki
|
|
564
|
+
[📜gl-wiki-img]: https://img.shields.io/badge/wiki-gitlab-943CD2.svg?style=for-the-badge&logo=gitlab&logoColor=white
|
|
565
|
+
[📜gh-wiki-img]: https://img.shields.io/badge/wiki-github-943CD2.svg?style=for-the-badge&logo=github&logoColor=white
|
|
566
|
+
[👽dl-rank]: https://clickgems.clickhouse.com/dashboard/resque-unique_at_runtime
|
|
567
|
+
[👽dl-ranki]: https://img.shields.io/gem/dt/resque-unique_at_runtime.svg
|
|
568
|
+
[👽version]: https://clickgems.clickhouse.com/dashboard/resque-unique_at_runtime
|
|
569
|
+
[👽versioni]: https://img.shields.io/gem/v/resque-unique_at_runtime.svg
|
|
570
|
+
[🏀qlty-mnt]: https://qlty.sh/gh/resque/projects/resque-unique_at_runtime
|
|
571
|
+
[🏀qlty-mnti]: https://qlty.sh/gh/resque/projects/resque-unique_at_runtime/maintainability.svg
|
|
572
|
+
[🏀qlty-cov]: https://qlty.sh/gh/resque/projects/resque-unique_at_runtime/metrics/code?sort=coverageRating
|
|
573
|
+
[🏀qlty-covi]: https://qlty.sh/gh/resque/projects/resque-unique_at_runtime/coverage.svg
|
|
574
|
+
[🏀codecov]: https://codecov.io/gh/resque/resque-unique_at_runtime
|
|
575
|
+
[🏀codecovi]: https://codecov.io/gh/resque/resque-unique_at_runtime/graph/badge.svg
|
|
576
|
+
[🏀coveralls]: https://coveralls.io/github/resque/resque-unique_at_runtime?branch=main
|
|
577
|
+
[🏀coveralls-img]: https://coveralls.io/repos/github/resque/resque-unique_at_runtime/badge.svg?branch=main
|
|
578
|
+
[🚎ruby-2.4-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-2.4.yml
|
|
579
|
+
[🚎ruby-2.5-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-2.5.yml
|
|
580
|
+
[🚎ruby-2.6-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-2.6.yml
|
|
581
|
+
[🚎ruby-2.7-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-2.7.yml
|
|
582
|
+
[🚎ruby-3.0-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-3.0.yml
|
|
583
|
+
[🚎ruby-3.1-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-3.1.yml
|
|
584
|
+
[🚎ruby-3.2-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-3.2.yml
|
|
585
|
+
[🚎ruby-3.3-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-3.3.yml
|
|
586
|
+
[🚎ruby-3.4-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/ruby-3.4.yml
|
|
587
|
+
[🚎jruby-9.2-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/jruby-9.2.yml
|
|
588
|
+
[🚎jruby-9.3-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/jruby-9.3.yml
|
|
589
|
+
[🚎jruby-9.4-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/jruby-9.4.yml
|
|
590
|
+
[🚎jruby-10.0-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/jruby-10.0.yml
|
|
591
|
+
[🚎truby-22.3-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffleruby-22.3.yml
|
|
592
|
+
[🚎truby-23.0-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffleruby-23.0.yml
|
|
593
|
+
[🚎truby-23.1-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffleruby-23.1.yml
|
|
594
|
+
[🚎truby-24.2-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffleruby-24.2.yml
|
|
595
|
+
[🚎truby-25.0-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffleruby-25.0.yml
|
|
596
|
+
[🚎truby-33.0-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffleruby-33.0.yml
|
|
597
|
+
[🚎2-cov-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/coverage.yml
|
|
598
|
+
[🚎2-cov-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/coverage.yml/badge.svg
|
|
599
|
+
[🚎3-hd-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/heads.yml
|
|
600
|
+
[🚎3-hd-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/heads.yml/badge.svg
|
|
601
|
+
[🚎5-st-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/style.yml
|
|
602
|
+
[🚎5-st-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/style.yml/badge.svg
|
|
603
|
+
[🚎9-t-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffle.yml
|
|
604
|
+
[🚎9-t-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/truffle.yml/badge.svg
|
|
605
|
+
[🚎10-j-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/jruby.yml
|
|
606
|
+
[🚎10-j-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/jruby.yml/badge.svg
|
|
607
|
+
[🚎11-c-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/current.yml
|
|
608
|
+
[🚎11-c-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/current.yml/badge.svg
|
|
609
|
+
[🚎12-crh-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/dep-heads.yml
|
|
610
|
+
[🚎12-crh-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/dep-heads.yml/badge.svg
|
|
611
|
+
[🚎13-🔒️-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/locked_deps.yml
|
|
612
|
+
[🚎13-🔒️-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/locked_deps.yml/badge.svg
|
|
613
|
+
[🚎14-🔓️-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/unlocked_deps.yml
|
|
614
|
+
[🚎14-🔓️-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/unlocked_deps.yml/badge.svg
|
|
615
|
+
[🚎15-🪪-wf]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/license-eye.yml
|
|
616
|
+
[🚎15-🪪-wfi]: https://github.com/resque/resque-unique_at_runtime/actions/workflows/license-eye.yml/badge.svg
|
|
617
|
+
[💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
|
|
618
|
+
[💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
619
|
+
[💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
620
|
+
[💎ruby-2.6i]: https://img.shields.io/badge/Ruby-2.6-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
621
|
+
[💎ruby-2.7i]: https://img.shields.io/badge/Ruby-2.7-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
622
|
+
[💎ruby-3.0i]: https://img.shields.io/badge/Ruby-3.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
623
|
+
[💎ruby-3.1i]: https://img.shields.io/badge/Ruby-3.1-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
624
|
+
[💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
625
|
+
[💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
626
|
+
[💎ruby-3.4i]: https://img.shields.io/badge/Ruby-3.4-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
627
|
+
[💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
|
|
628
|
+
[💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
|
|
629
|
+
[💎truby-22.3i]: https://img.shields.io/badge/Truffle_Ruby-22.3-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
630
|
+
[💎truby-23.0i]: https://img.shields.io/badge/Truffle_Ruby-23.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
631
|
+
[💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
632
|
+
[💎truby-24.2i]: https://img.shields.io/badge/Truffle_Ruby-24.2-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
633
|
+
[💎truby-25.0i]: https://img.shields.io/badge/Truffle_Ruby-25.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
634
|
+
[💎truby-33.0i]: https://img.shields.io/badge/Truffle_Ruby-33.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
635
|
+
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
|
|
636
|
+
[💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
|
|
637
|
+
[💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
638
|
+
[💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
639
|
+
[💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
640
|
+
[💎jruby-10.0i]: https://img.shields.io/badge/JRuby-10.0-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
641
|
+
[💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
|
|
642
|
+
[💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
|
|
643
|
+
[🤝gh-issues]: https://github.com/resque/resque-unique_at_runtime/issues
|
|
644
|
+
[🤝gh-pulls]: https://github.com/resque/resque-unique_at_runtime/pulls
|
|
645
|
+
[🤝gl-issues]: https://gitlab.com/resque/resque-unique_at_runtime/-/issues
|
|
646
|
+
[🤝gl-pulls]: https://gitlab.com/resque/resque-unique_at_runtime/-/merge_requests
|
|
647
|
+
[🤝cb-issues]: https://codeberg.org/resque/resque-unique_at_runtime/issues
|
|
648
|
+
[🤝cb-pulls]: https://codeberg.org/resque/resque-unique_at_runtime/pulls
|
|
649
|
+
[🤝cb-donate]: https://donate.codeberg.org/
|
|
650
|
+
[🤝contributing]: https://github.com/resque/resque-unique_at_runtime/blob/main/CONTRIBUTING.md
|
|
651
|
+
[🏀codecov-g]: https://codecov.io/gh/resque/resque-unique_at_runtime/graph/badge.svg
|
|
652
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
|
653
|
+
[🖐contributors]: https://github.com/resque/resque-unique_at_runtime/graphs/contributors
|
|
654
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=resque/resque-unique_at_runtime
|
|
655
|
+
[🚎contributors-gl]: https://gitlab.com/resque/resque-unique_at_runtime/-/graphs/main
|
|
656
|
+
[🪇conduct]: https://github.com/resque/resque-unique_at_runtime/blob/main/CODE_OF_CONDUCT.md
|
|
657
|
+
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-2.1-259D6C.svg
|
|
658
|
+
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
|
659
|
+
[📌semver]: https://semver.org/spec/v2.0.0.html
|
|
660
|
+
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-259D6C.svg?style=flat
|
|
661
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
|
662
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
|
663
|
+
[📌changelog]: https://github.com/resque/resque-unique_at_runtime/blob/main/CHANGELOG.md
|
|
664
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
|
665
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-34495e.svg?style=flat
|
|
666
|
+
[📌gitmoji]: https://gitmoji.dev
|
|
667
|
+
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
668
|
+
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
669
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.127-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
670
|
+
[🔐security]: https://github.com/resque/resque-unique_at_runtime/blob/main/SECURITY.md
|
|
671
|
+
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
672
|
+
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
673
|
+
[📄license]: LICENSE.md
|
|
674
|
+
[📄license-ref]: https://github.com/resque/resque-unique_at_runtime/blob/main/MIT.md
|
|
675
|
+
[📄license-img]: https://img.shields.io/badge/License-MIT-259D6C.svg
|
|
676
|
+
[📄license-compat]: https://www.apache.org/legal/resolved.html#category-a
|
|
677
|
+
[📄license-compat-img]: https://img.shields.io/badge/Apache_Compatible:_Category_A-%E2%9C%93-259D6C.svg?style=flat&logo=Apache
|
|
678
|
+
|
|
679
|
+
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
|
680
|
+
[📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
|
|
681
|
+
[🚎yard-current]: http://rubydoc.info/gems/resque-unique_at_runtime
|
|
682
|
+
[🚎yard-head]: https://resque-unique-at-runtime.galtzo.com
|
|
683
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
|
684
|
+
[💎SHA_checksums]: https://gitlab.com/resque/resque-unique_at_runtime/-/tree/main/checksums
|
|
685
|
+
[💎rlts]: https://github.com/rubocop-lts/rubocop-lts
|
|
686
|
+
[💎rlts-img]: https://img.shields.io/badge/code_style_&_linting-rubocop--lts-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
687
|
+
[💎appraisal2]: https://github.com/appraisal-rb/appraisal2
|
|
688
|
+
[💎appraisal2-img]: https://img.shields.io/badge/appraised_by-appraisal2-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
689
|
+
[💎d-in-dvcs]: https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/
|
|
690
|
+
|
|
691
|
+
<!-- kettle-jem:metadata:start -->
|
|
692
|
+
| Field | Value |
|
|
693
|
+
|---|---|
|
|
694
|
+
| Package | resque-unique_at_runtime |
|
|
695
|
+
| Description | Ensures that for a given queue, only one worker is working on a job at any given time.<br><br>Example:<br><br>require 'resque/plugins/unique_at_runtime'<br><br>class StrictlySerialJob<br>include Resque::Plugins::UniqueAtRuntime<br><br>@queue = :serial_work<br><br>def self.perform<br># only one at a time in this block, no parallelism allowed for this<br># particular queue<br>end<br>end |
|
|
696
|
+
| Homepage | https://github.com/resque/resque-unique_at_runtime |
|
|
697
|
+
| Source | https://github.com/resque/resque-unique_at_runtime |
|
|
698
|
+
| License | `MIT` |
|
|
699
|
+
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/resque, https://thanks.dev/u/gh/pboling, https://tidelift.com/funding/github/rubygems/resque-unique_at_runtime, https://www.buymeacoffee.com/pboling |
|
|
700
|
+
<!-- kettle-jem:metadata:end -->
|