Skip to content

Retry transient AWS credential errors in all jobs#8639

Merged
iHiD merged 1 commit into
mainfrom
fix/8630
Feb 13, 2026
Merged

Retry transient AWS credential errors in all jobs#8639
iHiD merged 1 commit into
mainfrom
fix/8630

Conversation

@iHiD
Copy link
Copy Markdown
Member

@iHiD iHiD commented Feb 13, 2026

Closes #8630
Closes #8636

Summary

  • Added retry_on for Aws::Sigv4::Errors::MissingCredentialsError and Aws::Errors::MissingCredentialsError to ApplicationJob
  • Jobs hitting transient credential errors (e.g. during credential rotation or ECS task role refresh) now retry up to 3 times with 10s wait
  • Persistent failures still raise after retries exhaust, so Sentry captures genuine issues
  • This complements the existing in-method retry in Submission::File#raw_content (PR Add retry for transient AWS credential errors in Submission::File #8469) by covering all other S3 code paths (e.g. put_object, Active Storage)

Test plan

  • Added tests for both Aws::Sigv4::Errors::MissingCredentialsError and Aws::Errors::MissingCredentialsError retry behavior
  • All 7 application_job_test.rb tests pass (including 2 new)

🤖 Generated with Claude Code

Add retry_on for Aws::Sigv4::Errors::MissingCredentialsError and
Aws::Errors::MissingCredentialsError to ApplicationJob, so any job
hitting a transient credential issue (e.g. during credential rotation
or ECS task role refresh) retries up to 3 times with 10s wait.
Persistent failures still raise to Sentry after retries exhaust.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iHiD iHiD merged commit f500887 into main Feb 13, 2026
41 checks passed
@iHiD iHiD deleted the fix/8630 branch February 13, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant