You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though to a varying degree an obvious statement, as uWSGI disables Python threads by default, if use_queues is enabled (the default) you are not going to see much in the way of logs in Cloudwatch.
It would be helpful, maybe near to your AWS Lambda caveat, that for uWSGI this is mentioned and that the user should add enable-threads = true to their uWSGI INI file.
Better still would be for when threading is not available to refuse to start when use_queues is enabled, or print a large warning to STDERR that use_queues was automatically disabled.
Alas, I am not going to get that hour of my life back.
Thanks for the marvellous work otherwise.
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out, it's not obvious at all. This is one unfortunate consequence of uwsgi's design decisions - because of hacks like this, other packages are left to pick up the pieces. Disabling use_queues makes watchtower far less useful, and is not recommended in production. The code snippet that you linked is generally objectionable - packages should not be forced to delve into the implementation details of unrelated application servers to figure out whether they broke some fundamental runtime functionality by selectively hacking it out. With that said, you're not the first person surprised by this issue, and I think many watchtower users gave up trying to figure out the issue with the default uwsgi configuration, so the benefits of including a check like the one in raven-python outweigh the drawbacks. I'll look into adding either that check or a blanket warning when using uwsgi.
Though to a varying degree an obvious statement, as uWSGI disables Python threads by default, if
use_queues
is enabled (the default) you are not going to see much in the way of logs in Cloudwatch.It would be helpful, maybe near to your AWS Lambda caveat, that for uWSGI this is mentioned and that the user should add
enable-threads = true
to their uWSGI INI file.Better still would be for when threading is not available to refuse to start when
use_queues
is enabled, or print a large warning to STDERR thatuse_queues
was automatically disabled.Alas, I am not going to get that hour of my life back.
Thanks for the marvellous work otherwise.
The text was updated successfully, but these errors were encountered: