Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"connection already closed" while testing #127

Closed
mbi opened this issue Dec 25, 2015 · 1 comment
Closed

"connection already closed" while testing #127

mbi opened this issue Dec 25, 2015 · 1 comment
Labels

Comments

@mbi
Copy link

mbi commented Dec 25, 2015

I'm trying to write tests for an app using django-q, so I thought just use the ORM broker and force tasks to run synchronously:

Q_CLUSTER = {
    'sync': True,
    'orm': 'default'
}

My test calls a function that enqueues a task,

Creating test database for alias 'default'...
10:37:57 [Q] INFO Starting check on expired.identrustssl.com
10:37:58 [Q] INFO MainProcess ready for work at 22161
10:37:58 [Q] INFO MainProcess processing [potato-eight-west-jersey]
10:38:00 [Q] INFO MainProcess stopped doing work
10:38:00 [Q] INFO MainProcess monitoring at 22161
10:38:00 [Q] ERROR connection already closed
10:38:00 [Q] ERROR Failed [potato-eight-west-jersey] - connection already closed

Am I missing something?

@Koed00
Copy link
Owner

Koed00 commented Jan 8, 2016

This should probably be fixed by #126 . I'll merge and release it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants