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 committed by Shane McDonald
parent 481047bed8
commit 3065e29deb
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -3151,6 +3151,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