Skip to content

[DISCARDED] Fix: Add timeout to network requests to prevent infinite hangs - #295

Closed
pranjal2004838 wants to merge 1 commit into
creativecommons:mainfrom
pranjal2004838:fix/add-timeout-to-requests
Closed

pranjal2004838 wants to merge 1 commit into
creativecommons:mainfrom
pranjal2004838:fix/add-timeout-to-requests

Conversation

@pranjal2004838

Copy link
Copy Markdown
Contributor

This pull request addresses an issue where network requests can cause infinite hangs in CI/CD pipelines.

Changes:

  • Added a timeout=30 parameter to requests.get() calls in both scripts/1-fetch/github_fetch.py and scripts/1-fetch/smithsonian_fetch.py.

Reasoning:
By default, Python's requests library uses an infinite timeout. If the remote API server accepts a connection but fails to send data, the script will hang forever, waiting for a response and burning pipeline minutes. Setting a 30-second timeout ensures that instead of freezing endlessly, it will raise a timeout exception if the external server becomes unresponsive.

Copilot AI review requested due to automatic review settings May 18, 2026 08:18
@pranjal2004838
pranjal2004838 requested review from a team as code owners May 18, 2026 08:18
@pranjal2004838
pranjal2004838 requested review from TimidRobot and possumbilities and removed request for a team May 18, 2026 08:18

This comment was marked as low quality.

@TimidRobot

Copy link
Copy Markdown
Member

Please note that the template you deleted includes:

<!-- ⚠️ Pull requests (PRs) that don't follow this template will be discarded. -->

Please restore and complete the template.

@TimidRobot TimidRobot self-assigned this May 18, 2026
@github-project-automation github-project-automation Bot moved this to Triage in TimidRobot May 18, 2026
@TimidRobot TimidRobot moved this from Triage to In review in TimidRobot May 18, 2026
@TimidRobot TimidRobot added the ⛔️ status: discarded Will not be worked on label Oct 5, 2026
@TimidRobot TimidRobot changed the title Fix: Add timeout to network requests to prevent infinite hangs [DISCARDED] Fix: Add timeout to network requests to prevent infinite hangs Oct 5, 2026
@TimidRobot TimidRobot closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⛔️ status: discarded Will not be worked on

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants