func (wh *WorkflowHandler) GetTaskListsByDomain(
	ctx context.Context,
	request *types.GetTaskListsByDomainRequest,
) (resp *types.GetTaskListsByDomainResponse, retError error) {
	defer log.CapturePanic(wh.GetLogger(), &retError)

	scope, sw := wh.startRequestProfileWithDomain(ctx, metrics.FrontendGetTaskListsByDomainScope, request)
	defer sw.Stop()

	if wh.isShuttingDown() {
		return nil, errShuttingDown
	}

	if request == nil {
		return nil, wh.error(errRequestNotSet, scope)
	}

	if request.GetDomain() == "" {
		return nil, wh.error(errDomainNotSet, scope)
	}

	if ok := wh.allow(true, request); !ok {
		return nil, wh.error(createServiceBusyError(), scope)
	}

	resp, err := wh.GetMatchingClient().GetTaskListsByDomain(ctx, &types.GetTaskListsByDomainRequest{
		Domain: request.Domain,
	})
	return resp, err
}
// GetTaskListsByDomain returns all the partition and host for a taskList
GetTaskListsByDomain returns all the partition and host for a taskList
// GetTaskListsByDomain returns all the partition and host for a taskList
func (wh *WorkflowHandler) GetTaskListsByDomain(
	ctx context.Context,
	request *types.GetTaskListsByDomainRequest,
) (resp *types.GetTaskListsByDomainResponse, retError error) {
	defer log.CapturePanic(wh.GetLogger(), &retError)
	scope, sw := wh.startRequestProfileWithDomain(ctx, metrics.FrontendGetTaskListsByDomainScope, request)
	defer sw.Stop()
	if wh.isShuttingDown() {
		return nil, errShuttingDown
	}
	if request == nil {
		return nil, wh.error(errRequestNotSet, scope)
	}
	if request.GetDomain() == "" {
		return nil, wh.error(errDomainNotSet, scope)
	}
	if ok := wh.allow(true, request); !ok {
		return nil, wh.error(createServiceBusyError(), scope)
	}
	resp, err := wh.GetMatchingClient().GetTaskListsByDomain(ctx, &types.GetTaskListsByDomainRequest{
		Domain: request.Domain,
	})
	return resp, err
}
func ( wh * WorkflowHandler ) GetTaskListsByDomain ( ctx context . Context , request * types . GetTaskListsByDomainRequest , ) ( resp * types . GetTaskListsByDomainResponse , retError error ) { defer log . CapturePanic ( wh . GetLogger ( ) , & retError ) scope , sw := wh . startRequestProfileWithDomain ( ctx , metrics . FrontendGetTaskListsByDomainScope , request ) defer sw . Stop ( ) if wh . isShuttingDown ( ) { return nil , errShuttingDown } if request == nil { return nil , wh . error ( errRequestNotSet , scope ) } if request . GetDomain ( ) == " " { return nil , wh . error ( errDomainNotSet , scope ) } if ok := wh . allow ( true , request ) ; ! ok { return nil , wh . error ( createServiceBusyError ( ) , scope ) } resp , err := wh . GetMatchingClient ( ) . GetTaskListsByDomain ( ctx , & types . GetTaskListsByDomainRequest { Domain : request . Domain , } ) return resp , err }
GetTaskListsByDomain returns all the partition and host for a taskList
GetTaskListsByDomain returns all the partition and host for a taskList