Skip to content

Expose Shutdown Timeout as Configurable Parameter #134

Open
@theonewolf

Description

@theonewolf

Currently, when waitress receives a SIGINT or traps a SystemExit exception, it tries to shutdown the running task dispatcher.

The shutdown method embeds inside its function signature a hardcoded timeout value of 5 seconds.

This should not be hidden nor hardcoded. It should be exposed as a parameter to the operator.

The line of source code I'm talking about is here:

def shutdown(self, cancel_pending=True, timeout=5):

and the only place it's called (I believe, outside of tests):

self.task_dispatcher.shutdown()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions