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

Add GPO list daemon timeout option #1097

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

dangerousplay
Copy link
Contributor

Hello, I hope you are good.

Added a --gpo-list-timeout flag and a gpo_list_timeout configuration parameter on the adsys daemon.

By default, the GPO list timeout is fixed to 10 seconds. If the GPO list python script takes more than 10 seconds it's killed by the timeout. However, there might be scenarios where 10 seconds might not be enoguth. In our use case, the GPO list procedure finishes around 15 seconds in average.

Have a wonderful day ^^

@dangerousplay dangerousplay requested a review from a team as a code owner September 11, 2024 23:01
Copy link
Contributor

github-actions bot commented Sep 11, 2024

Everyone contributing to this PR have now signed the CLA. Thanks!

@dangerousplay dangerousplay force-pushed the add-gpo-list-timeout-option branch 10 times, most recently from f9ccaa4 to 0e965aa Compare September 12, 2024 19:34
Signed-off-by: Davi Henrique <dangerousplay715@gmail.com>
Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

Excellent! Thanks for contributing to adsys and help making it better (and work in your case :)). I think the approach makes sense. You are the first one enduring this timeout. We may increase the default later if more cases occurred, but let’s keep it that way with your configuration option to accomodate other scenarios for now.

I have one small nitpick in the example configuration file. We can modify it after merging if you don’t have time to modify it. It’s up to you, just tell us :)
Then, we can merge.

Thanks again for this very valuable contribution!

conf.example/adsys.yaml Outdated Show resolved Hide resolved
Signed-off-by: Davi Henrique <dangerousplay715@gmail.com>
@dangerousplay
Copy link
Contributor Author

Thank you, pull request updated with the suggestion ^^

Generated documentation should have capitalized GPO for consistency
across the doc.
However, as gpo is also used as an argument of the config, put it in the
allowed list.
Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

Thanks a lot for you work! I just pushed one commit to fix the capitalization of "gpo" in the help, as the generated helper from the reference command line was making the documentation check (so that we don’t have a mix of "GPO" and "gpo" in it). Howver, because of the configuration using "gpo", I had to make it enter the allowed list too. I didn’t want you to have to bother with this :)

Everything looks excellent! Approving and merging, thanks again :)

@didrocks didrocks merged commit fb64f0b into ubuntu:main Sep 13, 2024
3 checks passed
@dangerousplay dangerousplay deleted the add-gpo-list-timeout-option branch September 13, 2024 15:09
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