Skip to content

aws-batch: Handle connection errors gracefully - #542

Open
victorlin wants to merge 1 commit into
masterfrom
victorlin/handle-connection-error
Open

aws-batch: Handle connection errors gracefully#542
victorlin wants to merge 1 commit into
masterfrom
victorlin/handle-connection-error

Conversation

@victorlin

Copy link
Copy Markdown
Member

Description of proposed changes

Instead of crashing with an unhandled traceback when network connectivity to AWS Batch is lost, raise a UserError instructing the user how to re-attach to the job once connection is restored.

Add a new helper function reattach_cmd() for use in both detach() and connection error handlers.

Related issue(s)

Error mentioned on Slack

Checklist

  • Checks pass
  • Update changelog

Instead of crashing with an unhandled traceback when network
connectivity to AWS Batch is lost, raise a UserError instructing the
user how to re-attach to the job once connection is restored.

Add a new helper function reattach_cmd() for use in both detach() and
connection error handlers.
@victorlin victorlin self-assigned this Aug 7, 2026
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.

1 participant