-
Notifications
You must be signed in to change notification settings - Fork 457
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
version 3.1.1 seems to incorrectly close the log file fd. #288
Comments
Thanks! I was looking into this yesterday and even made a fix: There still weren't any output though, so it must be some other fd than what's in logger.handlers |
Well, doh, it seems I was cheating off the wrong person, so to speak,
but the Seems I can fix two bugs in one with this |
Awesome. |
Seems I'm a bit tired, closerange was correct, the problem was that Logger.manager.LoggerDict does not include the root logger. |
@ask could it also be that I am redirecting stdout and since celery/celery@3614c15 you have closed it after forking? |
No, it's just that I was searching for fds to keep in logging.logger.manager.LoggerDict, but that contains all the loggers registered in the process, except for the root logger object. celery/celery@8015da0 fixes the problem, |
@ask cool I'll try it out :-) |
Yep fixed :-) |
After updating to django celery from v3.0.23 to v3.1.1, I get the following output and IOError on start up:
Here are some of my celery settings:
Log file output:
I am guessing that in 3.1.1 a log handler's fd is being closed, whereas in 3.0.23 it was not. I am using django 1.5.5.
The text was updated successfully, but these errors were encountered: