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

Exit 1 on hot startup failure #371

Closed
brtkwr opened this issue Jan 2, 2024 · 3 comments
Closed

Exit 1 on hot startup failure #371

brtkwr opened this issue Jan 2, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@brtkwr
Copy link

brtkwr commented Jan 2, 2024

Describe the bug

If TOKENS is provided and the bootstrap fails, it appears as though unleash-edge starts anyway. Is it possible to force application to exit so that unleash-edge can retry bootstrapping? We don't want a new unleash-edge deployment to replace the existing if the bootstrapping has failed for whatever reason.

Steps to reproduce the bug

No response

Expected behavior

No response

Logs, error output, etc.

No response

Screenshots

No response

Additional context

No response

Unleash version

No response

Subscription type

None

Hosting type

None

SDK information (language and version)

No response

@brtkwr brtkwr added the bug Something isn't working label Jan 2, 2024
@sjaanus
Copy link
Collaborator

sjaanus commented Jan 11, 2024

Hey @brtknr , thank you for contacting us. What tokens are you providing? Are they valid? Do you know why the bootstrap process is failing?

@brtkwr
Copy link
Author

brtkwr commented Jan 11, 2024

Hi @sjaanus, my thinking around this is if the unleash instance is unavailable and unleash-edge is not able to contact the main unleash server to bootstrap the flags, I don't want my existing deployment to be replace until the new deployment is hot bootstrapped. Does that make sense?

@sjaanus
Copy link
Collaborator

sjaanus commented Jan 11, 2024

Sure, in this situation, you should use the edge readiness check. You can find more information about it here: https://docs.getunleash.io/reference/unleash-edge#built-in-ready-check. The edge will become ready as soon as it receives the feature flags. 😊

@sjaanus sjaanus self-assigned this Jan 11, 2024
@daveleek daveleek moved this from New to In Progress in Issues and PRs Jan 11, 2024
@sjaanus sjaanus closed this as completed Jan 16, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants