AAP-14538 Only process ansible_facts for successful jobs (#14313)

This commit is contained in:
Alan Rominger
2023-08-04 17:10:14 -04:00
committed by GitHub
parent abc56305cc
commit 6f9ea1892b
3 changed files with 6 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ class RunnerCallback:
self.model = model
self.update_attempts = int(settings.DISPATCHER_DB_DOWNTOWN_TOLLERANCE / 5)
self.wrapup_event_dispatched = False
self.artifacts_processed = False
self.extra_update_fields = {}
def update_model(self, pk, _attempt=0, **updates):
@@ -211,6 +212,9 @@ class RunnerCallback:
if result_traceback:
self.delay_update(result_traceback=result_traceback)
def artifacts_handler(self, artifact_dir):
self.artifacts_processed = True
class RunnerCallbackForProjectUpdate(RunnerCallback):
def __init__(self, *args, **kwargs):