Repository navigation
Improve diagnostics for job data request timeouts - #655
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Job startup can repeatedly time out on GET /api/job/job while the console only shows buffered ReadTimeout messages. Flush each attempt and failure traceback immediately, include request ID and elapsed time, and correlate them with API stage logs for database pool acquisition, token validation, OPA authorization, job queries, and Vault calls. Logging each stage before it starts identifies operations that never finish. The timeout test captures flushed output before retry and performs assertions after load_data returns, so its retry handler cannot swallow assertion failures.
This change also increases the bootstrap read timeout from 10 to 120 seconds and removes raw Vault tokens and authentication configuration from two existing log/error messages. Other retry and job-status handling stays unchanged.
Validation:
The original console establishes a bootstrap API read timeout; it does not establish which backend operation caused it.