sidekiq_toolbelt 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +39 -7
- data/lib/sidekiq_toolbelt.rb +0 -7
- data/lib/sidekiq_toolbelt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79a0fab0493ff458370130b9a876146da13cebe6
|
4
|
+
data.tar.gz: 4b095d4deb8d8bd96a88aa95065f8dfc201465d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b3b405b0231cacc1681b3899de2c275ac63946bf2ed6988a251a830b2b4df8126940f3aca44be9a4665151f7dfdde1efc3628af31aa0408c72667816bdcc36b
|
7
|
+
data.tar.gz: 830b6ed34d9f04559d6adfc685b1bdbf977feab1be98bae40266713f16ada6f75e086fe152beeb902e8ba9cb2298df87c8670f867b9cd413f337724554fa3de1
|
data/README.md
CHANGED
@@ -20,17 +20,49 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
This library is meant to be used along with `Sidekiq`, probably from a Rails console.
|
22
22
|
|
23
|
-
|
23
|
+
Print job counts:
|
24
24
|
|
25
|
-
|
25
|
+
```
|
26
|
+
SidekiqToolbelt.counts
|
27
|
+
# or
|
28
|
+
SidekiqToolbelt.counts(queue: :important)
|
29
|
+
```
|
30
|
+
|
31
|
+
Kill a job by class:
|
32
|
+
|
33
|
+
```
|
34
|
+
SidekiqToolbelt.kill('User::SignupEmail')
|
35
|
+
# or
|
36
|
+
SidekiqToolbelt.kill('User::SignupEmail', queue: :important)
|
37
|
+
```
|
38
|
+
|
39
|
+
Kill a job by error:
|
40
|
+
|
41
|
+
```
|
42
|
+
SidekiqToolbelt.kill('Net::HTTPForbidden')
|
43
|
+
# or
|
44
|
+
SidekiqToolbelt.kill('Net::HTTPForbidden', queue: :important)
|
45
|
+
```
|
26
46
|
|
27
|
-
|
47
|
+
Kill a rescheduled job by class:
|
28
48
|
|
29
|
-
|
49
|
+
```
|
50
|
+
SidekiqToolbelt.kill_retries('User::SignupEmail')
|
51
|
+
```
|
30
52
|
|
31
|
-
|
53
|
+
Kill a rescheduled job by error:
|
32
54
|
|
33
|
-
|
55
|
+
```
|
56
|
+
SidekiqToolbelt.kill_retries_by_error('Net::HTTPForbidden')
|
57
|
+
```
|
58
|
+
|
59
|
+
Continuously kill jobs to keep a queue clear:
|
60
|
+
|
61
|
+
```
|
62
|
+
SidekiqToolbelt.clear('User::SignupEmail')
|
63
|
+
# or
|
64
|
+
SidekiqToolbelt.clear('User::SignupEmail', 'User::SubscriptionJob', queue: :important)
|
65
|
+
```
|
34
66
|
|
35
67
|
## Development
|
36
68
|
|
@@ -40,7 +72,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
40
72
|
|
41
73
|
## Contributing
|
42
74
|
|
43
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
75
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/salbertson/sidekiq_toolbelt.
|
44
76
|
|
45
77
|
|
46
78
|
## License
|
data/lib/sidekiq_toolbelt.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_toolbelt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Albertson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|