Worker: retry failed `fetch:plan` events
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 23
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 17
Description
Seen a lost run lately where the fetch:plan event timed out, resulting in the run being lost.
This is a rare event, but the worker must handle the case better. Should the plan fail to fetch, it should be quite happy to back off and try again.
On these getter-style events (dataclip, plan, maybe credential) we don't have to worry about idempotence. So in the event of a timeout these events should just keep retrying until they a) error or b) succeed.
I suppose the flipside of this is: if the event consistently times out, the worker should give up and return some kind of error, rather than just letting the run be Lost
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the worker handling fetch:plan and the existing retry or backoff behavior for getter-style events such as dataclip and credential. Determine how repeated timeouts are reported, then verify that a timed-out plan fetch retries and that a consistently failing fetch eventually returns an error instead of leaving the run Lost.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100