[uWSGI] Possible setup race condition between uwsgi-plugin-python and python-flask

Clemens Kolbitsch kolbitsch at lastline.com
Tue Apr 8 18:06:02 CEST 2014


On Tue, Apr 8, 2014 at 3:13 AM, Roberto De Ioris <roberto at unbit.it> wrote:

>
> > import ConfigParser
> > import logging
> >
> > import myapp
> >
> >
> > CONFIG_FILE = "/etc/myapp/myapp.ini"
> >
> > config_parser = ConfigParser.ConfigParser()
> > config_file = open(CONFIG_FILE)
> > config_parser.readfp(config_file,CONFIG_FILE)
> >
> > log = ...
> > application = myapp.create_app(CONFIG_FILE, None, log, strict=True)
> >
> > application.logger.setLevel(logging.DEBUG)
> > for handler in log.logger().handlers:
> >     application.logger.addHandler(handler)
> >
>
>
>
> I see nothing strange in it, but once you get 404 you continue to get it
> or it get fixed after a bunch of requests ?
>

the 404 happens right after the respawning, happens 1-2 times and goes away
again (probably once the blueprints have been properly loaded)

-Clemens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20140408/7edd51be/attachment.html>


More information about the uWSGI mailing list