Skip to content

Allow configuring a different reloader #984

Closed

Description

@dstufft

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.

Activity

  1. berkerpeksag commented on Feb 17, 2015

    @berkerpeksag
    Collaborator

    We probably can add a reloader_class attribute to gunicorn.app.base.Application.

  2. tilgovi commented on Feb 17, 2015

    @tilgovi
    Collaborator

    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?

  3. dstufft commented on Feb 17, 2015

    @dstufft
    Author

    That would be good enough for what I need it for I believe.

  4. tilgovi commented on Feb 17, 2015

    @tilgovi
    Collaborator

    Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions