pgbus 0.1.8 → 0.1.9

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: fea599f69fd2b216ca1f805da2e72ec594080b02f3ae4c17cb2fe6e7fd0e3359
4
- data.tar.gz: b03a0bfa5448819822ced10c02de6e14cdacff982f29e7d69234a64dc4b50310
3
+ metadata.gz: b1e18f777c6b6f2dbc0f927994e19587a489f0551be9f5e228c4d47b3f346fa0
4
+ data.tar.gz: 433faca464a6f881a21cbcf950c3238cdd34e1e11fac0108a320dd98e23dfae1
5
5
  SHA512:
6
- metadata.gz: 97b31599de64e76a125f06f1aae701f23fd7177213f3fc90622aefbe4eb484740b52cde1fae04c85428386fd637d6bd32cd16032ecb130455212fb1bd7408c18
7
- data.tar.gz: 5032cf8a4d1781d162761674496724311589b1897785c2dc90473d7f7264f3d05784c4a6ecbd6de01daa630432b9ba46dbc0f839dd86850ccd2caf10993a3540
6
+ metadata.gz: 89418720dfb7433c1716cff8e238e74fee2be4c04a8023a4c2dc3b67fdf393b9ddb9f7c4df70b435a6cdcc9a3668c1c24e78bedce83c0c22d93d196ab1ee1574
7
+ data.tar.gz: b10d5f71b80c97e42573b2b034c0c1b4444342d6e729fef0fd0e8a97dba269eb35cdca8fc4bfcb4446dd17e630683859c1b5d0043467218baf15b72b05fb3e38
@@ -42,11 +42,6 @@ module Pgbus
42
42
  private
43
43
 
44
44
  def boot_processes
45
- # Bootstrap all configured queues before forking workers.
46
- # Without this, workers start reading from non-existent queues
47
- # and recurring task enqueues fail.
48
- bootstrap_queues
49
-
50
45
  # Boot workers
51
46
  config.workers.each do |worker_config|
52
47
  fork_worker(worker_config)
@@ -75,6 +70,7 @@ module Pgbus
75
70
  restore_signals
76
71
  setup_child_process
77
72
  load_rails_app
73
+ bootstrap_queues
78
74
  worker = Worker.new(
79
75
  queues: queues, threads: threads, config: config,
80
76
  single_active_consumer: single_active, consumer_priority: priority
@@ -126,6 +122,7 @@ module Pgbus
126
122
  setup_child_process
127
123
  load_rails_app
128
124
  load_recurring_config
125
+ bootstrap_queues
129
126
  scheduler = Recurring::Scheduler.new(config: config)
130
127
  scheduler.run
131
128
  end
data/lib/pgbus/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pgbus
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson