Skip to content

fix: Remove redundant poll loops for created Ingress, Service and Deployment resources#332

Open
ppawlowski wants to merge 1 commit intomainfrom
fix-remove-poll-loops
Open

fix: Remove redundant poll loops for created Ingress, Service and Deployment resources#332
ppawlowski wants to merge 1 commit intomainfrom
fix-remove-poll-loops

Conversation

@ppawlowski
Copy link
Copy Markdown
Contributor

Description

This pull request removes three setInterval poll loops that follow creation of Deployment , Service and Ingress resources.

Each loop polled the Kubernetes API until the resource was found, treating this as a prerequisite before proceeding. However, a successful resource create call already guarantees the resource is written to the API server and immediately readable - there is no inconsistency possibility. The loops resolved on their very first tick in every normal case, providing no correctness value.

Removing them reduces the number of Kubernetes API calls per project creation from up to 8 (5 creates + 3 reads) down to 5.

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

@ppawlowski ppawlowski requested a review from hardillb March 23, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant