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
Currently the only way to customize the Reloader implementation is to either monkeypatch it or subclass the worker. It would be great if there was a way, even if it was only really available via gunicorn.app.base.Application subclassing, to configure our own Reloader.
Alternatively a way to specify additional files (maybe with a glob?) would be useful instead.
Even just assigning the new Reloader instance to self.reloader would make it available to the post_worker_init hook. The Reloader has a method add_extra_file.
Would that be sufficient for what you need for this issue or do you really want to customize it in some other way?
Activity
berkerpeksag commentedon Feb 17, 2015
We probably can add a
reloader_classattribute togunicorn.app.base.Application.tilgovi commentedon Feb 17, 2015
Even just assigning the new
Reloaderinstance toself.reloaderwould make it available to thepost_worker_inithook. TheReloaderhas a methodadd_extra_file.Would that be sufficient for what you need for this issue or do you really want to customize it in some other way?
dstufft commentedon Feb 17, 2015
That would be good enough for what I need it for I believe.
tilgovi commentedon Feb 17, 2015
Done.