class FlowCancelService {

    public void cancelTooOldTerminationFlowForResource(Long stackId, String stackName) {
        try {
            flowLogService.cancelTooOldTerminationFlowForResource(stackId, new Date().getTime() - terminationRetryAllowedInMinute * MINUTE_IN_MS);
        } catch (Exception e) {
            LOGGER.warn("Can't cancel old termination flows for stack {}", stackName, e);
        }
    }

}