Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creation race 114 #118

Merged

Conversation

elenaviter
Copy link
Contributor

@elenaviter elenaviter commented Oct 11, 2023

Description

Related Issue(s)

Race on eventually consistent operations of provision/deprovision of Project's k8s resources [e.g. service, ingress]

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

Labels

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

@elenaviter elenaviter mentioned this pull request Oct 11, 2023
11 tasks
Copy link
Contributor

@hardillb hardillb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing this, I will try and get all this merged today

Comment on lines +375 to +376
const k8sDelay = 1000
const k8sRetries = 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As these are duplicated lower down, I'm going to move them to top level variables so they are only set once and shared and also make them set from driver options

e.g.

this._k8sDelay = this._app.config.driver.options.k8sDelay || 1000
this._k8sRetries = this._app.config.driver.options.k8sRetries || 10

@hardillb hardillb merged commit 8d78745 into FlowFuse:fix-creation-race-114 Oct 13, 2023
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.

2 participants