mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Rename commands to task-manager namespace
This commit is contained in:
@@ -20,8 +20,8 @@ class SchedulerStart extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('scheduler:start');
|
||||
$this->setDescription('Starts Phraseanet scheduler');
|
||||
parent::__construct('task-manager:scheduler:start');
|
||||
$this->setDescription('Starts Task-Manager scheduler');
|
||||
}
|
||||
|
||||
protected function doExecute(InputInterface $input, OutputInterface $output)
|
||||
|
@@ -21,9 +21,9 @@ class SchedulerState extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('scheduler:state');
|
||||
parent::__construct('task-manager:scheduler:state');
|
||||
$this
|
||||
->setDescription('Returns Phraseanet scheduler status')
|
||||
->setDescription('Returns Task-Manager scheduler state')
|
||||
->addOption('short', null, InputOption::VALUE_NONE, 'print short result, ie: <info>stopped()</info> | <info>started(12345)</info> | <info>tostop(12345)</info> | <info>stopping(12345)</info>');
|
||||
}
|
||||
|
||||
|
@@ -20,8 +20,8 @@ class SchedulerStop extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('scheduler:stop');
|
||||
$this->setDescription('Starts Phraseanet scheduler');
|
||||
parent::__construct('task-manager:scheduler:stop');
|
||||
$this->setDescription('Starts Task-Manager scheduler. It updates the scheduler configuration.');
|
||||
}
|
||||
|
||||
protected function doExecute(InputInterface $input, OutputInterface $output)
|
||||
|
@@ -20,7 +20,7 @@ class TaskList extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('task:list');
|
||||
parent::__construct('task-manager:task:list');
|
||||
}
|
||||
|
||||
protected function doExecute(InputInterface $input, OutputInterface $output)
|
||||
|
@@ -22,7 +22,7 @@ class TaskManagerCommand extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('task-manager:run');
|
||||
parent::__construct('task-manager:scheduler:run');
|
||||
}
|
||||
|
||||
public function signalHandler($signal)
|
||||
|
@@ -29,7 +29,7 @@ class TaskRun extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('task:run');
|
||||
parent::__construct('task-manager:task:run');
|
||||
|
||||
$this->addArgument('task_id', InputArgument::REQUIRED, 'The id of the task to run', null)
|
||||
->addOption('max-memory', null, InputOption::VALUE_REQUIRED, '')
|
||||
|
@@ -21,7 +21,7 @@ class TaskState extends Command
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('task:state');
|
||||
parent::__construct('task-manager:task:state');
|
||||
|
||||
$this
|
||||
->addArgument('task_id', InputArgument::REQUIRED, 'The task_id to test')
|
||||
|
Reference in New Issue
Block a user