Skip to content

remove hardcoded timeout value#16

Merged
Satyam709 merged 1 commit into
mainfrom
ctx-based-deadline
Aug 14, 2025
Merged

remove hardcoded timeout value#16
Satyam709 merged 1 commit into
mainfrom
ctx-based-deadline

Conversation

@Satyam709

Copy link
Copy Markdown
Collaborator

Add deadline retrieval from context

Copilot AI review requested due to automatic review settings August 14, 2025 21:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors timeout handling by removing a hardcoded timeout value and instead retrieving the deadline from the context. The change centralizes timeout configuration to the calling code that sets the context deadline.

  • Replaces hardcoded 180-second timeout with dynamic timeout calculation from context deadline
  • Updates documentation to reflect the simplified timeout configuration approach

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
internal/docker/oba_container.go Implements context deadline retrieval with fallback to 300-second default
README.md Updates timeout configuration instructions to reference centralized approach

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread internal/docker/oba_container.go
Comment thread internal/docker/oba_container.go
@Satyam709 Satyam709 merged commit 0981c47 into main Aug 14, 2025
2 checks passed
@Satyam709 Satyam709 deleted the ctx-based-deadline branch August 14, 2025 21:46
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