mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02: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:
|
except Exception:
|
||||||
raise RuntimeError(detail)
|
raise RuntimeError(detail)
|
||||||
|
|
||||||
|
time.sleep(3)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
# Spawned in a thread so Receptor can start reading before we finish writing, we
|
# Spawned in a thread so Receptor can start reading before we finish writing, we
|
||||||
|
|||||||
Reference in New Issue
Block a user