Search in sources :

Example 1 with ServerHealthServiceUpdatingOperationResult

use of com.thoughtworks.go.server.service.result.ServerHealthServiceUpdatingOperationResult in project gocd by gocd.

the class PipelineScheduler method autoProduceBuildCauseAndSave.

private void autoProduceBuildCauseAndSave() {
    try {
        OperationResult result = new ServerHealthServiceUpdatingOperationResult(serverHealthService);
        if (!schedulingChecker.canSchedule(result)) {
            return;
        }
        removeLicenseInvalidFromLog();
        checkPipelines();
    } catch (Exception e) {
        LOGGER.error("Error autoScheduling pipelines", e);
    }
}
Also used : ServerHealthServiceUpdatingOperationResult(com.thoughtworks.go.server.service.result.ServerHealthServiceUpdatingOperationResult) OperationResult(com.thoughtworks.go.server.service.result.OperationResult) ServerHealthServiceUpdatingOperationResult(com.thoughtworks.go.server.service.result.ServerHealthServiceUpdatingOperationResult)

Aggregations

OperationResult (com.thoughtworks.go.server.service.result.OperationResult)1 ServerHealthServiceUpdatingOperationResult (com.thoughtworks.go.server.service.result.ServerHealthServiceUpdatingOperationResult)1