mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
Attempt to work around a bug from old versions of pyzmq where closing
the socket before immediately exiting could cause a crash
This commit is contained in:
@@ -187,6 +187,8 @@ class CallbackReceiver(object):
|
|||||||
if messages_processed >= MAX_REQUESTS:
|
if messages_processed >= MAX_REQUESTS:
|
||||||
print("Shutting down message receiver")
|
print("Shutting down message receiver")
|
||||||
pool_subscriber.close()
|
pool_subscriber.close()
|
||||||
|
pool_context.term()
|
||||||
|
time.sleep(0.1)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
class Command(NoArgsCommand):
|
class Command(NoArgsCommand):
|
||||||
|
|||||||
Reference in New Issue
Block a user