From 9f280bcf393eafd095fe9d14c785a6d9ac0d4227 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 15 Feb 2014 23:17:53 +0100 Subject: [PATCH] Commented it out again (has delayed to much) + moved task up as this is a very early task. Signed-off-by: Roland Haeder --- .../node/class_NodeTaskHandlerInitializerFilter.php | 12 ++++++------ .../hub/main/handler/tasks/class_TaskHandler.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/application/hub/main/filter/task/node/class_NodeTaskHandlerInitializerFilter.php b/application/hub/main/filter/task/node/class_NodeTaskHandlerInitializerFilter.php index 9f5400613..fd64698bc 100644 --- a/application/hub/main/filter/task/node/class_NodeTaskHandlerInitializerFilter.php +++ b/application/hub/main/filter/task/node/class_NodeTaskHandlerInitializerFilter.php @@ -61,6 +61,12 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera // Get a new task handler instance $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class'); + // Prepare a package-tags initialization task for the listeners + $taskInstance = ObjectFactory::createObjectByConfiguredName('node_package_tags_init_task_class'); + + // Register it + $handlerInstance->registerTask('package_tags_init', $taskInstance); + // Generate socket listener task $taskInstance = ObjectFactory::createObjectByConfiguredName('node_socket_listener_task_class'); @@ -115,12 +121,6 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera // Register it as well $handlerInstance->registerTask('dht_publication', $taskInstance); - // Prepare a package-tags initialization task for the listeners - $taskInstance = ObjectFactory::createObjectByConfiguredName('node_package_tags_init_task_class'); - - // Register it - $handlerInstance->registerTask('package_tags_init', $taskInstance); - // Prepare a self-test task for the listeners $taskInstance = ObjectFactory::createObjectByConfiguredName('node_selfconnect_task_class'); diff --git a/application/hub/main/handler/tasks/class_TaskHandler.php b/application/hub/main/handler/tasks/class_TaskHandler.php index 8fca16438..22796915a 100644 --- a/application/hub/main/handler/tasks/class_TaskHandler.php +++ b/application/hub/main/handler/tasks/class_TaskHandler.php @@ -99,7 +99,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask { // Should we start now? if ($diff < $currentTask['task_startup_delay']) { // Skip this silently - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('TASK-HANDLER[' . __LINE__ . ']: Task ' . $currentTask['id'] . ' not started: diff=' . $diff . ',task_startup_delay=' . $currentTask['task_startup_delay']); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('TASK-HANDLER[' . __LINE__ . ']: Task ' . $currentTask['id'] . ' not started: diff=' . $diff . ',task_startup_delay=' . $currentTask['task_startup_delay']); return; } // END - if -- 2.39.5