RETRY
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 36s
Smoke Test / Run basic test suite (pull_request) Successful in 4m7s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m45s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m0s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m56s

This commit is contained in:
Thomas E Lackey 2024-08-14 21:43:40 -05:00
parent 807c398691
commit c080e50b06

View File

@ -479,13 +479,16 @@ def command( # noqa: C901
f"Found satisfied request for {r.id} at {deployments_by_request[r.id].id}"
)
else:
if r.id not in previous_requests:
main_logger.log(f"Request {r.id} needs to processed.")
requests_to_execute.append(r)
else:
if (
r.id in previous_requests
and previous_requests[r.id].get("status", "") != "RETRY"
):
main_logger.log(
f"Skipping unsatisfied request {r.id} because we have seen it before."
)
else:
main_logger.log(f"Request {r.id} needs to processed.")
requests_to_execute.append(r)
main_logger.log(
"Found %d unsatisfied request(s) to process." % len(requests_to_execute)