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

Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1' #235

Closed
SubCoder1 opened this issue Mar 21, 2019 · 8 comments

Comments

@SubCoder1
Copy link

I'm repeatedly getting this warning WARNING:waitress.queue:Task queue depth is 1 while testing my site in development using waitress server, furthermore some static files are loading well and some are not whereas everything works fine when django's default manage.py runserver command is used. Is there any way to increase the thread count? Dunno maybe that might fix this issue?

@digitalresistor
Copy link
Member

I'm repeatedly getting this warning WARNING:waitress.queue:Task queue depth is 1 while testing my site in development using waitress server

This simply means waitress has more requests waiting to be processed than threads. You can up the threads by changing the variable in your configuration or what is passed to waitress.

See https://docs.pylonsproject.org/projects/waitress/en/stable/arguments.html specifically the "threads" argument.

It is a simple warning, and something you can safely ignore, waitress will get to the request asap, you may also disable the warning entirely by changing your logger to not log for waitress.queue

furthermore some static files are loading well and some are not whereas everything works fine when django's default manage.py runserver command is used

What does "loading well" mean? This provides no information on what may potentially going wrong, or where to start debugging.

Thread count won't help with static files that are not "loading well". All requests will get processed. I don't know how Django's manage.py runserver works, what web server it uses or how it is processing requests.

@zhangyuhangk
Copy link

I'm repeatedly getting this warning WARNING:waitress.queue:Task queue depth is 1 while testing my site in development using waitress server

This simply means waitress has more requests waiting to be processed than threads. You can up the threads by changing the variable in your configuration or what is passed to waitress.

See https://docs.pylonsproject.org/projects/waitress/en/stable/arguments.html specifically the "threads" argument.

It is a simple warning, and something you can safely ignore, waitress will get to the request asap, you may also disable the warning entirely by changing your logger to not log for waitress.queue

furthermore some static files are loading well and some are not whereas everything works fine when django's default manage.py runserver command is used

What does "loading well" mean? This provides no information on what may potentially going wrong, or where to start debugging.

Thread count won't help with static files that are not "loading well". All requests will get processed. I don't know how Django's manage.py runserver works, what web server it uses or how it is processing requests.

Would you mind providing more information about how to "disable the warning entirely by changing your logger to not log for waitress.queue"? Thanks very much.

@isaacimholt
Copy link

I'm repeatedly getting this warning WARNING:waitress.queue:Task queue depth is 1 while testing my site in development using waitress server

This simply means waitress has more requests waiting to be processed than threads. You can up the threads by changing the variable in your configuration or what is passed to waitress.
See https://docs.pylonsproject.org/projects/waitress/en/stable/arguments.html specifically the "threads" argument.
It is a simple warning, and something you can safely ignore, waitress will get to the request asap, you may also disable the warning entirely by changing your logger to not log for waitress.queue

furthermore some static files are loading well and some are not whereas everything works fine when django's default manage.py runserver command is used

What does "loading well" mean? This provides no information on what may potentially going wrong, or where to start debugging.
Thread count won't help with static files that are not "loading well". All requests will get processed. I don't know how Django's manage.py runserver works, what web server it uses or how it is processing requests.

Would you mind providing more information about how to "disable the warning entirely by changing your logger to not log for waitress.queue"? Thanks very much.

I imagine you can do it like so: https://stackoverflow.com/a/11029841/196870 but changing 'requests' to 'waitress.queue'

evandrocoan added a commit to evandroforks/anki that referenced this issue Apr 29, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue Apr 29, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue Apr 29, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue Apr 30, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue May 1, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue May 2, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue May 2, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
evandrocoan added a commit to evandroforks/anki that referenced this issue May 3, 2020
Repeatedly getting this warning 'WARNING:waitress.queue:Task queue depth is 1'
Pylons/waitress#235
@1zg12
Copy link

1zg12 commented May 18, 2020

I'm repeatedly getting this warning WARNING:waitress.queue:Task queue depth is 1 while testing my site in development using waitress server

This simply means waitress has more requests waiting to be processed than threads. You can up the threads by changing the variable in your configuration or what is passed to waitress.
See https://docs.pylonsproject.org/projects/waitress/en/stable/arguments.html specifically the "threads" argument.
It is a simple warning, and something you can safely ignore, waitress will get to the request asap, you may also disable the warning entirely by changing your logger to not log for waitress.queue

furthermore some static files are loading well and some are not whereas everything works fine when django's default manage.py runserver command is used

What does "loading well" mean? This provides no information on what may potentially going wrong, or where to start debugging.
Thread count won't help with static files that are not "loading well". All requests will get processed. I don't know how Django's manage.py runserver works, what web server it uses or how it is processing requests.

Would you mind providing more information about how to "disable the warning entirely by changing your logger to not log for waitress.queue"? Thanks very much.

You can pass in the _quiet parameter, like so

serve(app, _quiet=True)

#133 (comment)

@digitalresistor
Copy link
Member

That _quiet parameter is a testing shim, and is not public API.

If you don't want Python logging it is a better idea to setup the Python loggers yourself, in which case the call to basicConfig won't actually do anything.

@PhantomMenace222
Copy link

Hi guys. I have this problem and I am a noob, I don't know how to run the command to change the threads of Waitress. I tried every variation. Can someone tell me exactly what to write so I can increase threads? Thank you so much.

@digitalresistor
Copy link
Member

@PhantomMenace222 for general support please send an email to our mailing list: https://pylonsproject.org/community-support.html

Thank you!

@PhantomMenace222
Copy link

PhantomMenace222 commented Jun 2, 2022 via email

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

No branches or pull requests

6 participants