diff --git a/lib/Alchemy/Phrasea/TaskManager/Editor/SubdefsEditor.php b/lib/Alchemy/Phrasea/TaskManager/Editor/SubdefsEditor.php index 69d9aff8eb..b5d0c16ce9 100644 --- a/lib/Alchemy/Phrasea/TaskManager/Editor/SubdefsEditor.php +++ b/lib/Alchemy/Phrasea/TaskManager/Editor/SubdefsEditor.php @@ -43,7 +43,7 @@ class SubdefsEditor extends AbstractEditor 1 - + 0 1 1 1 diff --git a/lib/Alchemy/Phrasea/TaskManager/Job/SubdefsJob.php b/lib/Alchemy/Phrasea/TaskManager/Job/SubdefsJob.php index 8b99c390b5..e3e040d77e 100644 --- a/lib/Alchemy/Phrasea/TaskManager/Job/SubdefsJob.php +++ b/lib/Alchemy/Phrasea/TaskManager/Job/SubdefsJob.php @@ -70,12 +70,13 @@ class SubdefsJob extends AbstractJob $app->getApplicationBox()->get_connection(); + $allDb = count($settings->xpath('sbas[text()="0"]')) > 0; foreach ($app->getDataboxes() as $databox) { if (!$this->isStarted()) { break; } - if(count($settings->xpath("sbas[text()=".$databox->get_sbas_id() ."]")) == 0) { + if(!$allDb && count($settings->xpath("sbas[text()=".$databox->get_sbas_id() ."]")) == 0) { continue; } diff --git a/lib/Alchemy/Phrasea/TaskManager/Notifier.php b/lib/Alchemy/Phrasea/TaskManager/Notifier.php index 101fb79753..d85b9f5f59 100644 --- a/lib/Alchemy/Phrasea/TaskManager/Notifier.php +++ b/lib/Alchemy/Phrasea/TaskManager/Notifier.php @@ -25,7 +25,7 @@ class Notifier implements NotifierInterface private $logger; /** @var integer */ - private $timeout = 10; + private $timeout = 1; public function __construct(\ZMQSocket $socket, LoggerInterface $logger) { diff --git a/templates/web/admin/task-manager/task-editor/subdefs.html.twig b/templates/web/admin/task-manager/task-editor/subdefs.html.twig index b32fe6ba94..d72456bf7e 100644 --- a/templates/web/admin/task-manager/task-editor/subdefs.html.twig +++ b/templates/web/admin/task-manager/task-editor/subdefs.html.twig @@ -4,9 +4,12 @@
+ {% for databox in app.getApplicationBox().get_databoxes() %} {% endfor %} @@ -68,6 +71,10 @@ {% block javascript %}