GitHub

CloseTimeout

API reference for CloseTimeout.

How long a closing worker may take to exit before its platform kills it (5 seconds). python_worker reads it when a worker starts running, so provide it where the worker is run or its pool is built. When none is provided there, it uses python_worker.CLOSE_TIMEOUT, read when the worker closes.

Functions

default

default() -> Duration

Returns Duration

@classmethod
def default(cls) -> Duration:
    return seconds(5)