* ----------------------------- Main loop ----------------------------
* This is the main loop. Queried calls should come back here very fast
* so the whole application runs on nice speed. This while-loop goes
- * until the hub is no longer active or all tasks are killed.
+ * until the application is no longer active or all tasks are killed.
*/
while (($cityInstance->isCityActive()) && ($handlerInstance->hasTasksLeft())) {
// Handle all tasks here
* @param $controllerInstance A controller instance
* @param $requestInstance An instance of a class with an Requestable interface
* @return void
- * @todo 0% done
+ * @todo ~10% done
*/
public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
// Add pre filters
// Add city activation filters
$controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('city_daemon_activation_task_handler_initializer_filter'));
- // Add shutdown filters
+ // Add shutdown filters, you may want to shutdown the task handler has last one.
$controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('city_daemon_shutdown_task_handler_filter'));
// This is the last generic shutdown filter