Skip to content

Commit 98c1fe5

Browse files
committed
gunicorn: add NotifyEventletWorker
for enabling an app to make use of all our custom gunicorn worker class features together
1 parent 5a52b8c commit 98c1fe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

notifications_utils/gunicorn/eventlet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,7 @@ def patch(self, *args, **kwargs):
119119
# monkey-patch it (or have to totally replace the run() method)
120120
geventlet._eventlet_serve = self.eventlet_serve
121121
super().patch(*args, **kwargs)
122+
123+
124+
class NotifyEventletWorker(ExpansionCooldownEventletWorker, ContextRecyclingEventletWorker):
125+
pass

0 commit comments

Comments
 (0)