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

[Chore] Make activation wait timeout configurable #240

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

rvem
Copy link
Member

@rvem rvem commented Nov 1, 2023

Problem: Currently profile activation waiting timeout is hardcoded to 240 seconds, see #48. In some cases, this timeout can be exceeded (e.g.
activation performs a heavy DB migration and waits for it to finish before considering the profile activation succesful).

Solution: Make this timeout configurable via 'activationTimeout' deploy attribute or corresponding '--activation-timeout' CLI option. For the sake of backward compatibility, the 'wait' subcommand new '--activation-timeout' option is made optional and defaults to 240 seconds if it wasn't provided.

@rvem rvem requested a review from PhilTaken November 1, 2023 11:49
@rvem rvem marked this pull request as ready for review November 1, 2023 12:13
src/lib.rs Outdated Show resolved Hide resolved
Problem: Currently profile activation waiting timeout is hardcoded to
240 seconds, see #48.
In some cases, this timeout can be exceeded (e.g.
activation performs a heavy DB migration and waits for it to finish
before considering the profile activation succesful).

Solution: Make this timeout configurable via 'activationTimeout' deploy
attribute or corresponding '--activation-timeout' CLI option. For the
sake of backward compatibility, the new 'wait' subcommand
'--activation-timeout' option is made optional and defaults to 240
seconds if it wasn't provided.
@rvem rvem force-pushed the rvem/make-wait-activation-timeout-configurable branch from 2e259eb to 50d640f Compare November 2, 2023 10:30
@rvem rvem merged commit 660180b into master Nov 2, 2023
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the rvem/make-wait-activation-timeout-configurable branch November 2, 2023 10:37
@SufyanDahalan
Copy link

Hey @PhilTaken
Can you document it? I stumbled upon it by mistake and I could only find it in the code, not in any docs or examples.
Thanks!

@rvem
Copy link
Member Author

rvem commented Dec 20, 2023

Hey, @SufyanDahalan. Thanks for catching the lack of documentation, we'll update it

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.

None yet

3 participants