Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion alts/worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,18 @@ def set_artifacts_when_stage_has_unexpected_exception(
headers={'Authorization': f'Bearer {CONFIG.bs_token}'},
timeout=DEFAULT_REQUEST_TIMEOUT,
)
response.raise_for_status()
try:
response.raise_for_status()
except HTTPError as exc:
# Client errors (e.g. 404 for a removed build task) won't
# be fixed by re-running the whole test task
if 400 <= response.status_code < 500:
logging.error(
'Callback %s for task %s failed with client error, '
'skipping retry: %s',
full_url, task_params['task_id'], exc,
)
else:
raise

return summary
Loading