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

feat(BA-468): Add timeout conf for image push #3412

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Jan 9, 2025

resolves #3401

The default timeout value is None, which means infinite timeout

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@fregataa fregataa added this to the 25Q1 milestone Jan 9, 2025
@fregataa fregataa self-assigned this Jan 9, 2025
@github-actions github-actions bot added comp:agent Related to Agent component size:S 10~30 LoC labels Jan 9, 2025
@fregataa fregataa requested a review from HyeockJinKim January 9, 2025 02:58
Comment on lines +818 to +820
image_push_timeout = cast(
Optional[float], self.local_config["agent"]["api"]["push-timeout"]
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is type casting necessary? Can’t we set the timeout value stored in local_config as Optional[float]?

Copy link
Member Author

Choose a reason for hiding this comment

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

the value is stored as Optional[float]. I used typing.cast to specify the expected type of the value to the type checker

@fregataa fregataa requested a review from HyeockJinKim January 9, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:agent Related to Agent component size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add timeout configuration for Docker image push
2 participants