Skip to content

Commit

Permalink
Add timeout to gitlab requests in job classification task
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Jun 26, 2024
1 parent dfe5db2 commit 94490d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analytics/analytics/core/job_failure_classifier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ def _collect_pod_status(job_input_data: dict[str, Any], job_trace: str):
)
def upload_job_failure_classification(job_input_data_json: str) -> None:
gl = gitlab.Gitlab(
settings.GITLAB_ENDPOINT, settings.GITLAB_TOKEN, retry_transient_errors=True
settings.GITLAB_ENDPOINT,
settings.GITLAB_TOKEN,
retry_transient_errors=True,
timeout=15,
)

# Read input data and extract params
Expand Down

0 comments on commit 94490d7

Please sign in to comment.