private void checkTenantTasks(Tenant tenant) {
        m_logger.debug("Checking tenant '{}' for needy tasks", tenant);
        try {
            for (ApplicationDefinition appDef : SchemaService.instance().getAllApplications(tenant)) {
                for (Task task : getAppTasks(appDef)) {
                    checkTaskForExecution(appDef, task);
                }
            }
        } catch (Throwable e) {
            m_logger.warn("Could not check tasks for tenant '{}': {}", tenant.getName(), e);
        }
    }
private void checkTenantTasks ( Tenant tenant ) { m_logger . debug ( "Checking tenant '{}' for needy tasks" , tenant ) ; try { for ( ApplicationDefinition appDef : SchemaService . instance ( ) . getAllApplications ( tenant ) ) { for ( Task task : getAppTasks ( appDef ) ) { checkTaskForExecution ( appDef , task ) ; } } } catch ( Throwable e ) { m_logger . warn ( "Could not check tasks for tenant '{}': {}" , tenant . getName ( ) , e ) ; } }
Check the given tenant for tasks that need execution.