Skip to content

Commit 7c126fc

Browse files
committed
Fixed retry example
1 parent 37128e8 commit 7c126fc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Tork is a highly-scalable, general-purpose workflow engine. It lets you define j
4040
- **Task isolation** – Tasks run in containers for isolation, idempotency, and [resource limits](#limits)
4141
- **Automatic recovery** – Tasks are recovered if a worker crashes
4242
- **Stand-alone and distributed** – Run all-in-one or [distributed](#running-in-distributed-mode) with Coordinator + Workers
43-
- **Retry failed tasks** – Configurable [retry](#retry) with backoff
43+
- **Retry failed tasks** – Configurable [retry](#retry) (up to 10 attempts)
4444
- **Middleware**[HTTP, Job, Task, Node middleware](#middleware) for auth, logging, metrics
4545
- **No single point of failure** – Stateless, leaderless coordinators
4646
- **Task timeout**[Timeout](#timeout) per task
@@ -691,6 +691,8 @@ tasks:
691691

692692
### Retry
693693

694+
Set `limit` (1–10) to retry a failed task that many times:
695+
694696
```yaml
695697
name: retry job
696698
tasks:
@@ -699,8 +701,6 @@ tasks:
699701
run: echo hello world
700702
retry:
701703
limit: 5
702-
initialDelay: 5s
703-
scalingFactor: 2
704704
```
705705

706706
### Priority

0 commit comments

Comments
 (0)