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:
chris meyers
2021-10-15 16:27:24 -04:00
parent 0e15c269cd
commit 098201be0b

View File

@@ -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