mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 10:08:10 -03:30
avoid work_results and work release race
* Unsure exactly why this happens but there seems to be a race condition related to the time window between Receptor work_results and work release. This sleep extends that window and hopefully avoids the race condition.
This commit is contained in:
@@ -3146,6 +3146,7 @@ class AWXReceptorJob:
|
||||
except Exception:
|
||||
raise RuntimeError(detail)
|
||||
|
||||
time.sleep(3)
|
||||
return res
|
||||
|
||||
# Spawned in a thread so Receptor can start reading before we finish writing, we
|
||||
|
||||
Reference in New Issue
Block a user