mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
Resolve a deadlock in write_receptor_config()
This commit is contained in:
@@ -652,6 +652,7 @@ def write_receptor_config():
|
|||||||
with open(__RECEPTOR_CONF, 'w') as file:
|
with open(__RECEPTOR_CONF, 'w') as file:
|
||||||
yaml.dump(receptor_config, file, default_flow_style=False)
|
yaml.dump(receptor_config, file, default_flow_style=False)
|
||||||
|
|
||||||
|
# This needs to be outside of the lock because this function itself will acquire the lock.
|
||||||
receptor_ctl = get_receptor_ctl()
|
receptor_ctl = get_receptor_ctl()
|
||||||
|
|
||||||
attempts = 10
|
attempts = 10
|
||||||
|
|||||||
Reference in New Issue
Block a user