Skip to content
Snippets Groups Projects
Commit 94264cb8 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add a description to all commands

This is visible when running "./bin/console"
parent 21e7ceb3
Branches
Tags v0.1.20
No related merge requests found
Pipeline #60142 failed
...@@ -17,6 +17,11 @@ class RestartCommand extends Command implements LoggerAwareInterface ...@@ -17,6 +17,11 @@ class RestartCommand extends Command implements LoggerAwareInterface
protected static $defaultName = 'dbp:relay:core:queue:restart'; protected static $defaultName = 'dbp:relay:core:queue:restart';
protected function configure()
{
$this->setDescription('Stop all workers once they are done with the current task');
}
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
// Now run the real messenger:stop-workers command // Now run the real messenger:stop-workers command
......
...@@ -37,6 +37,7 @@ class WorkCommand extends Command implements LoggerAwareInterface ...@@ -37,6 +37,7 @@ class WorkCommand extends Command implements LoggerAwareInterface
protected function configure(): void protected function configure(): void
{ {
$this->setDescription('Start a worker which processes queued tasks');
$this->addArgument('worker-name', InputArgument::REQUIRED, 'A unique and stable worker name'); $this->addArgument('worker-name', InputArgument::REQUIRED, 'A unique and stable worker name');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment