Skip to content

Add request timeout to tower client#6950

Open
jorgee wants to merge 2 commits intomasterfrom
add-tower-client-request-timeout
Open

Add request timeout to tower client#6950
jorgee wants to merge 2 commits intomasterfrom
add-tower-client-request-timeout

Conversation

@jorgee
Copy link
Contributor

@jorgee jorgee commented Mar 20, 2026

Potentially close #6885
This pull request adds support for configurable HTTP request timeouts in the TowerClient and introduces a corresponding test to ensure correct error handling on timeout. The main changes include introducing a default timeout, allowing custom timeouts per client, applying the timeout to HTTP requests, and testing the timeout behavior.

Enhancements to HTTP request timeout handling:

  • Added a static DEFAULT_REQUEST_TIMEOUT (1 min) and a requestTimeout property to TowerClient, with a new withRequestTimeout(Duration) method to allow per-client timeout configuration. [1] [2] [3]
  • Applied the requestTimeout value to all outgoing HTTP requests by setting the timeout on the HTTP request builder.

Testing improvements:

  • Added a test in TowerClientTest that uses WireMock to simulate a slow server, verifying that a request with a short timeout fails as expected and returns an error response. [1] [2] [3]

jorgee added 2 commits March 20, 2026 16:17
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
… of 1 min

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@netlify
Copy link

netlify bot commented Mar 20, 2026

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 14a12fc
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69bd6bee8c281d000878e1be

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.

nf-tower plugin blocks JVM exit after workflow completion — missing HTTP read timeout

1 participant