backburner 1.9.1 → 1.9.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
- data/CHANGELOG.md +5 -0
- data/lib/backburner/version.rb +1 -1
- data/lib/backburner/workers/forking.rb +2 -2
- data/lib/backburner.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e06b3212ccce4ab8c5e0ca50f73261c231b141ecb7b64d6837b9ae226d02135
|
|
4
|
+
data.tar.gz: bd6edd04a207e72a8f99d9d73666e6f3d1bf98141021db69b6ea709670b551e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e01c8cb470a1a0d8b8f2158ba0a7c52307af43ab7137018133a12a1a83f90334f2a9b84c9115335ceaf9ec7d121042ed2d158e97b472382a61508ede94d2e48d
|
|
7
|
+
data.tar.gz: c58269a6b2024ea948f5ae254f5828723d2562cd78039bf363885ae15ccbd1c2697e9a0588837d186a91078e1d011a91bc29b26405f630b273352e800c144214
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## Version 1.9.2 (Dec 2 2026)
|
|
4
|
+
|
|
5
|
+
* Fix Active Job jobs ignoring their class's `queue_respond_timeout` on Rails 7.2 and newer when, without Bundler, Active Job is required before backburner (`require 'rails/all'` or `require 'active_job'`, then `require 'backburner'`): Active Job's own adapter loaded instead of this gem's, so every job got `config.respond_timeout` as its TTR. `require 'backburner'` now loads this gem's adapter, unless Active Job has already loaded its own. Nothing changes on Rails before 7.2. An app without Bundler that never requires backburner itself still gets Active Job's adapter: add `require 'backburner'` (#207)
|
|
6
|
+
* Fix the Forking worker watching the wrong tubes when its connection is reconnected (`Connection#reconnect!`): `Forking#on_reconnect` ran `prepare` again, re-expanding `tube_names` (with an uppercase `tube_namespace`, `MyApp.default` became `MyApp.my-app.default`). It now re-watches its already-expanded tubes, as `Simple#on_reconnect` does, and no longer runs `prepare` on reconnect (#205)
|
|
7
|
+
|
|
3
8
|
## Version 1.9.1 (Nov 5 2026)
|
|
4
9
|
|
|
5
10
|
* Faster hook lookup: finding a job class's hooks (`before_enqueue`, `before_perform` and the others) no longer lists every method each class has, so Backburner's own work per job is lighter: enqueueing takes about 30-40% less time and working a job about 15-30% less (more with Active Support loaded), measured with no-op jobs against a local beanstalkd. The same hooks run, in the same order
|
data/lib/backburner/version.rb
CHANGED
|
@@ -37,9 +37,9 @@ module Backburner
|
|
|
37
37
|
Process.wait(pid)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
# A reconnected connection only watches the default tube: watch ours again
|
|
40
41
|
def on_reconnect(conn)
|
|
41
|
-
|
|
42
|
-
prepare
|
|
42
|
+
conn.tubes.watch!(*self.tube_names)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
# Exit with Kernel.exit! to avoid at_exit callbacks that should belongs to
|
data/lib/backburner.rb
CHANGED
|
@@ -18,9 +18,11 @@ require 'backburner/workers/threading'
|
|
|
18
18
|
require 'backburner/queue'
|
|
19
19
|
# On Rails 7.2+ (which added AbstractAdapter) use this gem's Active Job adapter; older Rails autoload theirs.
|
|
20
20
|
# Not when Rails' autoload has already loaded the adapter or is loading it (an adapter file requires backburner).
|
|
21
|
+
# By its own path: Rails' adapter file has the same name, and comes first on the load path when Active Job was
|
|
22
|
+
# activated before this gem (without Bundler).
|
|
21
23
|
if defined?(ActiveJob::QueueAdapters::AbstractAdapter) && (ActiveJob::QueueAdapters.autoload?(:BackburnerAdapter) ||
|
|
22
24
|
!ActiveJob::QueueAdapters.constants(false).include?(:BackburnerAdapter))
|
|
23
|
-
require 'active_job/queue_adapters/backburner_adapter'
|
|
25
|
+
require File.expand_path('../active_job/queue_adapters/backburner_adapter', __FILE__)
|
|
24
26
|
end
|
|
25
27
|
|
|
26
28
|
module Backburner
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: backburner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Esquenazi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: beaneater
|