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 +4 -4
- data/lib/pgbus/process/supervisor.rb +2 -5
- data/lib/pgbus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1e18f777c6b6f2dbc0f927994e19587a489f0551be9f5e228c4d47b3f346fa0
|
|
4
|
+
data.tar.gz: 433faca464a6f881a21cbcf950c3238cdd34e1e11fac0108a320dd98e23dfae1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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