src/middlewares/circuit-breaker.js
function halfOpen(item) {
		item.state = C.CIRCUIT_HALF_OPEN;
		item.ep.state = true;

		logger.debug(`Circuit breaker has been half-opened on '${item.ep.name}' endpoint.`, { nodeID: item.ep.id, action: item.ep.action.name });

		broker.broadcast("$circuit-breaker.half-opened", { nodeID: item.ep.id, action: item.ep.action.name });

		if (item.cbTimer) {
			clearTimeout(item.cbTimer);
			item.cbTimer = null;
		}
	}
function halfOpen(item) {
		item.state = C.CIRCUIT_HALF_OPEN;
		item.ep.state = true;

		logger.debug(`Circuit breaker has been half-opened on '${item.ep.name}' endpoint.`, { nodeID: item.ep.id, action: item.ep.action.name });

		broker.broadcast("$circuit-breaker.half-opened", { nodeID: item.ep.id, action: item.ep.action.name });

		if (item.cbTimer) {
			clearTimeout(item.cbTimer);
			item.cbTimer = null;
		}
	}
function halfOpen ( item ) { item . state = C . CIRCUIT_HALF_OPEN ; item . ep . state = true ; logger . debug ( ` ${ item . ep . name } ` , { nodeID : item . ep . id , action : item . ep . action . name } ) ; broker . broadcast ( "$circuit-breaker.half-opened" , { nodeID : item . ep . id , action : item . ep . action . name } ) ; if ( item . cbTimer ) { clearTimeout ( item . cbTimer ) ; item . cbTimer = null ; } }
Change circuit-breaker status to half-open

@param {Object} item
@param {Context} ctx
Change circuit - breaker status to half - open