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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f190c0a217eed876f4a50fef4716649dc8a05c22
4
- data.tar.gz: 0be3b9281a865acee3168f44bc85177ac9b92d11
3
+ metadata.gz: 79a0fab0493ff458370130b9a876146da13cebe6
4
+ data.tar.gz: 4b095d4deb8d8bd96a88aa95065f8dfc201465d4
5
5
  SHA512:
6
- metadata.gz: fa2016431fc89b7b31fb5623554d5990cf69bafdb8ba6c69d726c281114711066af531992fb0bf03fab9a9a57fe4184775af238336a6b941e021e5c8f3762713
7
- data.tar.gz: fda8ff482ff4fb2c0ca99ee52f2e69a1050eb2129d6fcb2f720480671710bef6898468273f9925582f2b858e2c63b1deb943ab8133ec677eb07eea7b0fc5c59c
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
- `SidekiqToolbelt.counts` or `SidekiqToolbelt.counts(queue: :important)` will print job counts.
23
+ Print job counts:
24
24
 
25
- `SidekiqToolbelt.kill('User::SignupEmail')` or `SidekiqToolbelt.kill('User::SignupEmail', queue: :important)` will kill a job by class.
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
- `SidekiqToolbelt.kill('Net::HTTPForbidden')` or `SidekiqToolbelt.kill('Net::HTTPForbidden', queue: :important)` will kill a job by error.
47
+ Kill a rescheduled job by class:
28
48
 
29
- `SidekiqToolbelt.kill_retries('User::SignupEmail')` will kill a rescheduled job by class.
49
+ ```
50
+ SidekiqToolbelt.kill_retries('User::SignupEmail')
51
+ ```
30
52
 
31
- `SidekiqToolbelt.kill_retries_by_error('Net::HTTPForbidden')` will kill a rescheduled job by error.
53
+ Kill a rescheduled job by error:
32
54
 
33
- `SidekiqToolbelt.clear('User::SignupEmail')` or `SidekiqToolbelt.clear('User::SignupEmail', 'User::SubscriptionJob', queue: :important)` will continuously delete jobs to keep the queue clear.
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/[USERNAME]/sidekiq_toolbelt.
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/salbertson/sidekiq_toolbelt.
44
76
 
45
77
 
46
78
  ## License
@@ -53,11 +53,4 @@ module SidekiqToolbelt
53
53
  sleep 5
54
54
  end
55
55
  end
56
-
57
- def clear_realtime
58
- clear(
59
- 'Tickets::RealTimeNotificationWorker',
60
- 'TimelineEvents::RealTimeNotificationWorker'
61
- )
62
- end
63
56
  end
@@ -1,3 +1,3 @@
1
1
  module SidekiqToolbelt
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-21 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler