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

config: allow to modify operations timeout #727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

a-gave
Copy link

@a-gave a-gave commented Feb 3, 2024

This introduces an additional option to modify the operations timeout (currently defaulted to '10m')

The reason is to allow an installation of asu even on a machine that has low bandwidth availability, or a fair amount of latency.
Under these conditions asu may work fine, however the installation process may timeout during the profiles.json update process (unless the amount of available branches/releases is reduced)
In addition, even a single build may timeout if more than 10 minutes are required between downloading the imagebuilder corresponding to a request and compiling it.

Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (287b967) 87.46% compared to head (8210d6c) 87.67%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #727      +/-   ##
==========================================
+ Coverage   87.46%   87.67%   +0.21%     
==========================================
  Files          15       16       +1     
  Lines         973      990      +17     
==========================================
+ Hits          851      868      +17     
  Misses        122      122              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

asu/janitor.py Outdated
import importlib.util

for config_file in ["/etc/asu/config.py", "misc/config.py"]:
if os.path.exists(config_file):
Copy link
Member

Choose a reason for hiding this comment

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

Please use pathlib instead of os.path

@a-gave a-gave force-pushed the feat/allow-to-modify-operations-timeout branch from 084b20d to 8210d6c Compare February 5, 2024 17:04
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