MCPcopy
hub / github.com/benoitc/gunicorn / DirtyWorkerError

Class DirtyWorkerError

gunicorn/dirty/errors.py:98–109  ·  view source on GitHub ↗

Raised when a dirty worker encounters an error.

Source from the content-addressed store, hash-verified

96
97
98class DirtyWorkerError(DirtyError):
99 """Raised when a dirty worker encounters an error."""
100
101 def __init__(self, message, worker_id=None, traceback=None):
102 details = {}
103 if worker_id is not None:
104 details["worker_id"] = worker_id
105 if traceback:
106 details["traceback"] = traceback
107 super().__init__(message, details)
108 self.worker_id = worker_id
109 self.traceback = traceback
110
111
112class DirtyAppError(DirtyError):

Callers 3

route_requestMethod · 0.85
_execute_on_workerMethod · 0.85
handle_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected