# attempt - 실패 가능성이 있는 명령을 재시도하는 CLI

> Clean Markdown view of GeekNews topic #25478. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=25478](https://news.hada.io/topic?id=25478)
- GeekNews Markdown: [https://news.hada.io/topic/25478.md](https://news.hada.io/topic/25478.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2026-01-01T09:31:02+09:00
- Updated: 2026-01-01T09:31:02+09:00
- Original source: [github.com/MaxBondABE](https://github.com/MaxBondABE/attempt)
- Points: 2
- Comments: 0

## Topic Body

- 실패할 수도 있는 명령을 **지연 시간을 두고 자동으로 재시도**하도록 설계  
- **대기 시간을 점차 늘리는 재시도(exponential backoff)** 와 **타임아웃·지터**를 적용해, 동일한 실패가 동시에 반복되지 않도록 제어  
  `attempt exponential --retry-if-contains "server not ready" sqlx migrate`  
- Bash에 의존하지 않고 **서비스 준비 시점을 기다려 명령 실행** 가능  
- 네트워크나 외부 서비스처럼 **일시적으로 불안정한 환경에서도 스크립트 신뢰성 유지**  
- **엔드투엔드·단위 테스트**를 포함한 테스트 스위트 제공, **퍼블릭 도메인 라이선스**

## Comments



_No public comments on this page._
