Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Gunicorn[UVLoop]WebWorker doesn’t call worker_int and worker_abort callback #1202
Long story short
gunicorn defines two callbacks that are called after receiving SIGINT/SIGQUIT & SIGABRT.
The callbacks get called.
The callbacks don't get called.
Call the callbacks like
def handle_quit(self, sig, frame): self.alive = False # worker_int callback self.cfg.worker_int(self) time.sleep(0.1) sys.exit(0) def handle_abort(self, sig, frame): self.alive = False self.cfg.worker_abort(self) sys.exit(1)