resque-change_queue 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/testing.yml +32 -0
- data/README.md +14 -5
- data/lib/resque/change_queue/version.rb +1 -1
- data/resque-change_queue.gemspec +3 -3
- metadata +21 -16
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 139bfb704466d09f87b286c7052b263889a379aa20708d1b2d373d1cd1ba2af7
|
4
|
+
data.tar.gz: de9dc8d0c67abc73045cb34b535c52484dfd92acfc9110102afad95f7ea57f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2713dfd8cdc262da2477abb9e1d39469f8ac804d85e212fb80108b11dcb230d5f8373f13c86859ab35dde5522596ba6bf4968f60b14a47bb5f89585f920eb9a6
|
7
|
+
data.tar.gz: 6c3b77447be1693c31da9929f74a9b112b9f0ba324294a1d682822e6c9d839e55d3ceebe1036d678185a41567fe6bb97a12f5f5e1ce1b2a8e7a989e40eedfa8e
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Matrix Testing
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
services:
|
12
|
+
redis:
|
13
|
+
image: redis
|
14
|
+
options: >-
|
15
|
+
--health-cmd "redis-cli ping"
|
16
|
+
--health-interval 10s
|
17
|
+
--health-timeout 5s
|
18
|
+
--health-retries 5
|
19
|
+
runs-on: ${{ matrix.os }}-latest
|
20
|
+
strategy:
|
21
|
+
fail-fast: false
|
22
|
+
matrix:
|
23
|
+
os: [ubuntu]
|
24
|
+
ruby: [2.6, 2.7, 3.0, 3.1]
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v3
|
27
|
+
- uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: ${{ matrix.ruby }}
|
30
|
+
- run: sudo apt-get install -y redis-tools redis-server
|
31
|
+
- run: bundle install
|
32
|
+
- run: bundle exec rspec
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# Resque ChangeQueue
|
2
|
-
|
2
|
+
![example workflow](https://github.com/applidget/resque-change_queue/actions/workflows/testing.yml/badge.svg?branch=master)
|
3
3
|
|
4
|
-
Resque ChangeQueue is a [Resque](https://github.com/resque/resque) plugin allowing you to move jobs from one queue to
|
4
|
+
Resque ChangeQueue is a [Resque](https://github.com/resque/resque) plugin allowing you to move jobs from one queue to
|
5
|
+
another. This can be useful in some situation where some queue can be unexpectedly filled with thousands of slow jobs
|
6
|
+
to isolate them in a low queue in order not to block normal jobs.
|
5
7
|
|
6
8
|
Jobs can be queried based on their Class name and parameters.
|
7
9
|
|
@@ -29,10 +31,15 @@ Or install it yourself as:
|
|
29
31
|
|
30
32
|
## Usage from the UI
|
31
33
|
|
32
|
-
This plugin is
|
34
|
+
This plugin is primarily built to enable manual jobs manipulation from resque web interface (native resque 1.x sinatra
|
35
|
+
web interface). When including the gem into your Gemfile, you'll create a new tab in resque UI. You can filter the jobs
|
36
|
+
from here, and then validate.
|
33
37
|
![](https://s3-eu-west-1.amazonaws.com/assets.applidget.com/documentation/change-queue-home.png)
|
34
38
|
|
35
|
-
You can add as many args in this step, and jobs will be matched based on strict equality of each parameter.
|
39
|
+
You can add as many args in this step, and jobs will be matched based on strict equality of each parameter.
|
40
|
+
If you specify less parameters than the number of parameters in the target jobs, additional parameters will be
|
41
|
+
considered as matching. This allows you to filter jobs assuming that the first arguments are top level object ids
|
42
|
+
(for example if your args are `[project_id, discussion_id, comment_id]`).
|
36
43
|
|
37
44
|
The next screen show you the first 100 jobs matching your criteria. Just pick a target queue and validate, you're done!
|
38
45
|
|
@@ -50,7 +57,9 @@ Resque::ChangeQueue.change_queue(source_q, target_q, "SomeJobClass", args)
|
|
50
57
|
|
51
58
|
## Contributing
|
52
59
|
|
53
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/applidget/resque-change_queue. This project
|
60
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/applidget/resque-change_queue. This project
|
61
|
+
is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
|
62
|
+
[Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
54
63
|
|
55
64
|
|
56
65
|
## License
|
data/resque-change_queue.gemspec
CHANGED
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ["lib"]
|
36
36
|
|
37
|
-
spec.add_development_dependency "bundler", "
|
37
|
+
spec.add_development_dependency "bundler", ">= 1.13"
|
38
38
|
spec.add_development_dependency "rake", "~> 10.0"
|
39
39
|
spec.add_development_dependency "rspec", "~> 3.0"
|
40
40
|
spec.add_development_dependency "byebug", "~> 9.0"
|
41
41
|
|
42
|
-
spec.add_runtime_dependency 'redis', '
|
43
|
-
spec.add_runtime_dependency 'resque', '
|
42
|
+
spec.add_runtime_dependency 'redis', '< 5'
|
43
|
+
spec.add_runtime_dependency 'resque', '>= 1.25', '< 3'
|
44
44
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-change_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rpechayr
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.13'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.13'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -70,30 +70,36 @@ dependencies:
|
|
70
70
|
name: redis
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "<"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '5'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "<"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '5'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: resque
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.25'
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '3'
|
90
93
|
type: :runtime
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
93
96
|
requirements:
|
94
|
-
- - "
|
97
|
+
- - ">="
|
95
98
|
- !ruby/object:Gem::Version
|
96
99
|
version: '1.25'
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '3'
|
97
103
|
description: |2
|
98
104
|
Allows you to requeue jobs to another queue
|
99
105
|
This is useful in my situations :
|
@@ -105,9 +111,9 @@ executables: []
|
|
105
111
|
extensions: []
|
106
112
|
extra_rdoc_files: []
|
107
113
|
files:
|
114
|
+
- ".github/workflows/testing.yml"
|
108
115
|
- ".gitignore"
|
109
116
|
- ".rspec"
|
110
|
-
- ".travis.yml"
|
111
117
|
- CODE_OF_CONDUCT.md
|
112
118
|
- Gemfile
|
113
119
|
- LICENSE.txt
|
@@ -126,7 +132,7 @@ licenses:
|
|
126
132
|
- MIT
|
127
133
|
metadata:
|
128
134
|
allowed_push_host: https://rubygems.org
|
129
|
-
post_install_message:
|
135
|
+
post_install_message:
|
130
136
|
rdoc_options: []
|
131
137
|
require_paths:
|
132
138
|
- lib
|
@@ -141,9 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
147
|
- !ruby/object:Gem::Version
|
142
148
|
version: '0'
|
143
149
|
requirements: []
|
144
|
-
|
145
|
-
|
146
|
-
signing_key:
|
150
|
+
rubygems_version: 3.0.3
|
151
|
+
signing_key:
|
147
152
|
specification_version: 4
|
148
153
|
summary: Reorganize queued jobs on the fly
|
149
154
|
test_files: []
|