mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-198 #fix add possibility to disable taskmanager per instance
This commit is contained in:
@@ -73,6 +73,10 @@ class module_console_taskrun extends Command
|
||||
return self::EXITCODE_SETUP_ERROR;
|
||||
}
|
||||
|
||||
if ($this->container['phraseanet.registry"].get("GV_disable_task_manager']) {
|
||||
throw new RuntimeException('The use of the task manager is disabled on this instance.');
|
||||
}
|
||||
|
||||
$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.');
|
||||
|
Reference in New Issue
Block a user