File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
app/code/Magento/MessageQueue Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ class StartConsumerCommand extends Command
43
43
private $ lockManager ;
44
44
45
45
/**
46
- * StartConsumerCommand constructor.
47
- * {@inheritdoc}
48
- *
49
46
* @param \Magento\Framework\App\State $appState
50
47
* @param ConsumerFactory $consumerFactory
51
48
* @param string $name
@@ -166,14 +163,15 @@ protected function configure()
166
163
167
164
To do not run multiple copies of one consumer simultaneously:
168
165
169
- <comment>%command.full_name% someConsumer --single-thread' </comment>
166
+ <comment>%command.full_name% someConsumer --single-thread</comment>
170
167
171
168
To save PID enter path (This option is deprecated, use --single-thread instead):
172
169
173
170
<comment>%command.full_name% someConsumer --pid-file-path='/var/someConsumer.pid'</comment>
171
+
174
172
To define the number of processes per consumer:
175
173
176
- <comment>%command.full_name% someConsumer --multi-process' </comment>
174
+ <comment>%command.full_name% someConsumer --multi-process</comment>
177
175
HELP
178
176
);
179
177
parent ::configure ();
Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ class ConsumersRunner
60
60
private $ logger ;
61
61
62
62
/**
63
- * Lock Manager
64
- *
65
63
* @var LockManagerInterface
66
64
*/
67
65
private $ lockManager ;
@@ -139,7 +137,8 @@ public function run()
139
137
];
140
138
141
139
if ($ maxMessages ) {
142
- $ arguments [] = '--max-messages= ' . min ($ consumer ->getMaxMessages () ?? $ maxMessages , $ maxMessages );
140
+ $ arguments [] =
141
+ '--max-messages= ' . min ($ consumer ->getMaxMessages () ?? $ maxMessages , $ maxMessages );
143
142
}
144
143
145
144
$ command = $ php . ' ' . BP . '/bin/magento queue:consumers:start %s %s '
You can’t perform that action at this time.
0 commit comments