Skip to content

Conversation

fosterseth
Copy link
Member

@fosterseth fosterseth commented Apr 26, 2024

SUMMARY

related #15063

This change makes "wait: true" for jobs and syncs look at the event_processing_finished instead of finished field.

Right now there is a race condition where a module might try to delete an inventory, but the events for an inventory sync have not yet finished. We have a RelatedJobsPreventDeleteMixin that checks for this condition.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

This change makes "wait: true" for jobs and syncs
look at the event_processing_finished instead of
finished field.

Right now there is a race condition where
a module might try to delete an inventory, but the events
for an inventory sync have not yet finished. We have a
RelatedJobsPreventDeleteMixin that checks for this condition.
@github-actions github-actions bot added the component:awx_collection issues related to the collection for controlling AWX label Apr 26, 2024
@fosterseth fosterseth merged commit 4754819 into ansible:devel Apr 26, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
This change makes "wait: true" for jobs and syncs
look at the event_processing_finished instead of
finished field.

Right now there is a race condition where
a module might try to delete an inventory, but the events
for an inventory sync have not yet finished. We have a
RelatedJobsPreventDeleteMixin that checks for this condition.

bulk jobs don't have event_processing_finished so we just
use finished field in that case.
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
This change makes "wait: true" for jobs and syncs
look at the event_processing_finished instead of
finished field.

Right now there is a race condition where
a module might try to delete an inventory, but the events
for an inventory sync have not yet finished. We have a
RelatedJobsPreventDeleteMixin that checks for this condition.

bulk jobs don't have event_processing_finished so we just
use finished field in that case.
@fosterseth fosterseth deleted the wait_for_event_processing_finished branch March 11, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants