Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

WARNING:waitress.queue:Task queue depth is 1

Scheduled Pinned Locked Moved Solved LibreTranslate
3 Posts 2 Posters 176 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    warg
    wrote on last edited by
    #1

    Hello,

    I just tried LibreTranslate and noticed that with only 1 user and slow requests, I still get messages like this:

    Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 1
    Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 2
    Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 3
    Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 4
    Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 5
    Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 6
    

    According to Google results this is linked to performance bottlenecks. Can this be ignored? It surprises me that there is a bottleneck when the server basically does nothing except serving 1 user with one or two translation requests synchronously.

    Best Regards,

    girishG 1 Reply Last reply
    1
  • girishG Offline
    girishG Offline
    girish Staff
    replied to warg on last edited by
    #2

    This took some digging. I think it comes from https://github.com/Pylons/waitress/issues/235 maybe.

    But I found a LT_THREADS argument. If you put this in /app/data/env.sh and restart the app, the warning seems to disappear.

    export LT_THREADS=12
    

    I bumped the thread count to 8 for next package release.

    1 Reply Last reply
    2
  • nebulonN nebulon marked this topic as a question on
  • W Offline
    W Offline
    warg
    wrote on last edited by
    #3

    Yep, warning disappears with setting this environment variable.

    1 Reply Last reply
    1
  • girishG girish has marked this topic as solved on

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.