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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38f2e1a84e114710eb8a1e2e6e61e6fe1683c6e06963c69c065511b59ec41390
4
- data.tar.gz: 89a22694c1cd5b1957b4cd6ad287bc8905166588723421c1b0cedbdc2b37ecb0
3
+ metadata.gz: 9e06b3212ccce4ab8c5e0ca50f73261c231b141ecb7b64d6837b9ae226d02135
4
+ data.tar.gz: bd6edd04a207e72a8f99d9d73666e6f3d1bf98141021db69b6ea709670b551e7
5
5
  SHA512:
6
- metadata.gz: 8113a36c15482093961ac7d3e9fee24f30b9d549bc32f7553b518056dea93ab389a848975dd80c112e77aa68dc2c7fd11bfa7b51cdb015a410795e1b4b9ea8cc
7
- data.tar.gz: 8165aac92f55de2d5e6d15ad1ac91266c37f9355a1d8e6e8a3bf878f5af94028e7ecba8b2b69955c957d9cf61d908ebe8980208f977511a27f56e7440c4bc485
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
@@ -1,3 +1,3 @@
1
1
  module Backburner
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
  end
@@ -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
- @connection = conn
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2026-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: beaneater