8000 "empty queue and can't wait for next element because there are too many DequeueOrWaitForNextElement() waiting" · Issue #38 · enriquebris/goconcurrentqueue · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
"empty queue and can't wait for next element because there are too many DequeueOrWaitForNextElement() waiting" #38
Open
@jfberry

Description

@jfberry

getting this error thrown... except I only have a maximum of 3 waiters

This is how I dequeue - is there a problem with timing out and rechecking? Does that leak something?

	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
	defer cancel()
	queuedElement, err := scoutQueue.DequeueOrWaitForNextElementContext(ctx)
	if err != nil {
		if err != context.DeadlineExceeded {
			log.Infof("SCOUT: Unexpected queue error: %s", err)
		}
		return nil
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0