@@ -158,19 +158,19 @@ Note that all queue commands reside in the **InEngine.Core** plugin.
158158This is an example of how to publish a command from the CLI by specifying the command's plugin, class name, and arguments:
159159
160160``` bash
161- inengine.exe -pInEngine.Core queue:publish --command-plugin=MyCommandPlugin --command-class=MyCommand --args " text=bar"
161+ inengine.exe queue:publish --command-plugin=MyCommandPlugin --command-class=MyCommand --args " text=bar"
162162```
163163
164164There is an "Echo" command in the * InEngine.Core* package. It is useful for end-to-end testing with the queue feature.
165165
166166``` bash
167- inengine.exe -pInEngine.Core queue:publish --command-plugin=InEngine.Core --command-class=InEngine.Core.Commands.Echo --args " text=foo"
167+ inengine.exe queue:publish --command-plugin=InEngine.Core --command-class=InEngine.Core.Commands.Echo --args " text=foo"
168168```
169169
170170The command verb can also be specified instead of the full class name:
171171
172172``` bash
173- inengine.exe -pInEngine.Core queue:publish --command-plugin=InEngine.Core --command-verb=echo--args " text=foo"
173+ inengine.exe queue:publish --command-plugin=InEngine.Core --command-verb=echo--args " text=foo"
174174```
175175
176176## Consuming Commands
@@ -180,13 +180,13 @@ inengine.exe -pInEngine.Core queue:publish --command-plugin=InEngine.Core --comm
180180Commands can be consumed from the command line with this simple command:
181181
182182``` bash
183- inengine.exe -pInEngine.Core queue:consume
183+ inengine.exe queue:consume
184184```
185185
186186Use the ** --secondary** argument to consume the secondary queue instead of the primary queue:
187187
188188``` bash
189- inengine.exe -pInEngine.Core queue:consume --secondary
189+ inengine.exe queue:consume --secondary
190190```
191191
192192### With the Scheduler
@@ -219,40 +219,40 @@ new Consume {
219219The ** queue: length ** command shows a quick summary of pending, in-progress, and failed commands in the primary and secondary queues:
220220
221221``` bash
222- inengine.exe -pInEngine.Core queue:length
222+ inengine.exe queue:length
223223```
224224
225225### Peek at Queued Commands
226226
227227The ** queue: peek ** command allows for queued commands to be inspected:
228228
229229``` bash
230- inengine.exe -pInEngine.Core queue:peek --pending --in-progress --failed
230+ inengine.exe queue:peek --pending --in-progress --failed
231231```
232232
233233It is of course possible to peek in the secondary queues:
234234
235235``` bash
236- inengine.exe -pInEngine.Core queue:peek --pending --secondary
236+ inengine.exe queue:peek --pending --secondary
237237```
238238
239239Queued commands can be viewed in JSON which maybe useful for debugging:
240240
241241``` bash
242- inengine.exe -pInEngine.Core queue:peek --pending --json
242+ inengine.exe queue:peek --pending --json
243243```
244244
245245By default, up to the first 10 messages will be retrieved, but the range is configurable:
246246
247247``` bash
248- inengine.exe -pInEngine.Core queue:peek --pending --to=100
248+ inengine.exe queue:peek --pending --to=100
249249```
250250
251251A slice of the queue can be retrieved using the from argument.
252252For example, this queue: peek call retrieves the 100-200 queued commands:
253253
254254``` bash
255- inengine.exe -pInEngine.Core queue:peek --pending --from=100 --to=200
255+ inengine.exe queue:peek --pending --from=100 --to=200
256256```
257257
258258## Re-queuing Failed Commands
@@ -261,20 +261,20 @@ Commands that throw an exception are put in a special "failed" queue.
261261They can be republished with the ** queue: republish ** command:
262262
263263``` bash
264- inengine.exe -pInEngine.Core queue:republish
264+ inengine.exe queue:republish
265265```
266266
267267Failed secondary queue commands can be republished as well:
268268
269269``` bash
270- inengine.exe -pInEngine.Core queue:republish --secondary
270+ inengine.exe queue:republish --secondary
271271```
272272
273273By default, only 100 failed commands are republished at a time.
274274The is configurable:
275275
276276``` bash
277- inengine.exe -pInEngine.Core queue:republish --limit=1000
277+ inengine.exe queue:republish --limit=1000
278278```
279279
280280## Primary and Secondary Queue
@@ -289,7 +289,7 @@ If it is desirable, different [configuration files](configuration) can be used t
289289Simply create a new config file with a new QueueName setting and point inengine.exe at it with the -c argument:
290290
291291``` bash
292- inengine.exe -cMyCustomSettingsFile.json -pInEngine.Core queue:consume
292+ inengine.exe -cMyCustomSettingsFile.json queue:consume
293293```
294294
295295## Message Compression
0 commit comments