mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
fix bad conflict correction
This commit is contained in:
@@ -65,23 +65,14 @@ class module_console_taskrun extends Command
|
||||
}
|
||||
}
|
||||
|
||||
public function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
if ( ! setup::is_installed()) {
|
||||
if ($this->task) {
|
||||
$this->task->log(sprintf("signal %s received", $signo));
|
||||
if ($signo == SIGTERM)
|
||||
$this->task->set_running(false);
|
||||
}
|
||||
}
|
||||
// printf("%s (%d) execute\n", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
public function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
if ( ! setup::is_installed()) {
|
||||
$output->writeln('Phraseanet is not set up');
|
||||
return 1;
|
||||
}
|
||||
|
||||
$task_id = (int) $input->getArgument('task_id');
|
||||
if ($task_id <= 0 || strlen($task_id) !== strlen($input->getArgument('task_id')))
|
||||
throw new \RuntimeException('Argument must be an Id.');
|
||||
|
||||
@@ -121,7 +112,6 @@ class module_console_taskrun extends Command
|
||||
$runner = task_abstract::RUNNER_MANUAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function tick_handler()
|
||||
{
|
||||
|
Reference in New Issue
Block a user