class RequestsDBHelper {

    public void updateInfraFailureCompletion(String msg, String requestId, String operationalEnvironmentId) {
        methodName = "updateInfraFailureCompletion() method.";
        classMethodMessage = className + " " + methodName;
        logger.debug("Begin of {}", classMethodMessage);

        InfraActiveRequests request = requestsDbClient.getInfraActiveRequestbyRequestId(requestId);
        request.setRequestStatus("FAILED");
        request.setStatusMessage(
                "FAILURE, operationalEnvironmentId - " + operationalEnvironmentId + "; Error message: " + msg);
        request.setProgress(100L);
        request.setLastModifiedBy("APIH");
        request.setOperationalEnvId(operationalEnvironmentId);
        if (request.getRequestScope() == null) {
            request.setRequestScope(UNKNOWN);
        }
        Timestamp endTimeStamp = new Timestamp(System.currentTimeMillis());
        request.setEndTime(endTimeStamp);
        requestsDbClient.save(request);

        logger.debug("End of {}", classMethodMessage);

    }

}