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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • 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
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Translate
  3. WARNING:waitress.queue:Task queue depth is 1

WARNING:waitress.queue:Task queue depth is 1

Scheduled Pinned Locked Moved Solved Translate
3 Posts 2 Posters 3.1k Views 3 Watching
  • 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
    • W warg

      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 Offline
      girishG Offline
      girish
      Staff
      wrote 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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