code: 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);
          }
      }
docs: Check the given tenant for tasks that need execution.