resque 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +8 -0
- data/README.markdown +9 -0
- data/lib/resque/stat.rb +1 -1
- data/lib/resque/version.rb +1 -1
- data/lib/resque/worker.rb +4 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7419ce3cc8734b05527a47b0c5fb4a9eea0a5d33265a6e3214bb429980c37681
|
4
|
+
data.tar.gz: 4216e18e121883e0350275e00c19e1d6c6f0965915d4b48a8a0a29f07e652317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7301e154b368d012161ae22d69cb8e4400977a3099392f7789369ca37b04a413d0abec092e60dd9dddee01bda81c55dbf182da5cede4a8c2beff94f8ed44bc94
|
7
|
+
data.tar.gz: 85d0c05d98502b0da28ae60ca6117d3b4a47bbfc981b48c4168f6bf727bac8c4c325dcebf604f8916d0e04c97bf933651b6077b55ead117e7ecb1cc2cf4655f0
|
data/HISTORY.md
CHANGED
data/README.markdown
CHANGED
@@ -133,6 +133,15 @@ require 'your/app' # Include this line if you want your workers to have access t
|
|
133
133
|
|
134
134
|
#### Rails
|
135
135
|
|
136
|
+
##### Rails 7.1
|
137
|
+
|
138
|
+
If you're using Rails 7.1.x, use [rack-session version 1.0.2](https://rubygems.org/gems/rack-session/versions/1.0.2). This is because resque-web's dependency, [Sinatra, isn't compatible with rack 3.0](https://github.com/sinatra/sinatra/issues/1797), which is [required by rack-session 2.0.0](https://rubygems.org/gems/rack-session/versions/2.0.0).
|
139
|
+
|
140
|
+
```
|
141
|
+
gem 'rails', '~> 7.1'
|
142
|
+
gem 'rack-session', '~> 1.0', '>= 1.0.2'
|
143
|
+
```
|
144
|
+
|
136
145
|
To make resque specific changes, you can override the `resque:setup` job in `lib/tasks` (ex: `lib/tasks/resque.rake`). GitHub's setup task looks like this:
|
137
146
|
|
138
147
|
``` ruby
|
data/lib/resque/stat.rb
CHANGED
@@ -9,7 +9,7 @@ module Resque
|
|
9
9
|
extend self
|
10
10
|
|
11
11
|
def redis
|
12
|
-
warn '[Resque] [Deprecation] Resque::Stat #redis method is deprecated (please use #
|
12
|
+
warn '[Resque] [Deprecation] Resque::Stat #redis method is deprecated (please use #data_store)'
|
13
13
|
data_store
|
14
14
|
end
|
15
15
|
|
data/lib/resque/version.rb
CHANGED
data/lib/resque/worker.rb
CHANGED
@@ -585,14 +585,16 @@ module Resque
|
|
585
585
|
# Stop processing jobs after the current one has completed (if we're
|
586
586
|
# currently running one).
|
587
587
|
def pause_processing
|
588
|
-
|
588
|
+
_, self_write = IO.pipe
|
589
|
+
self_write.puts "USR2 received; pausing job processing"
|
589
590
|
run_hook :before_pause, self
|
590
591
|
@paused = true
|
591
592
|
end
|
592
593
|
|
593
594
|
# Start processing jobs again after a pause
|
594
595
|
def unpause_processing
|
595
|
-
|
596
|
+
_, self_write = IO.pipe
|
597
|
+
self_write.puts "CONT received; resuming job processing"
|
596
598
|
@paused = false
|
597
599
|
run_hook :after_pause, self
|
598
600
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: redis-namespace
|
@@ -61,14 +61,14 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '1
|
64
|
+
version: '1'
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '1
|
71
|
+
version: '1'
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: thin
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
|
-
rubygems_version: 3.
|
205
|
+
rubygems_version: 3.0.3.1
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Resque is a Redis-backed queueing system.
|