Worker: send run stats to Lightning
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 23
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 17
Description
If a run has a profile flag enabled in options (or if the worker is started in profile mode), it should send out a special event at the end of a run with stats
This at the moment is really just related to messaging:
- For each message emitted by the worker, how long did it take for lightning to reply
This needs to be a dedicated run:stats event, not part of run:complete, because it might be big. Lightning might need to know to keep the socket open if it's expecting run stats
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 tracing the worker's run-completion flow and the code that emits messages and receives Lightning replies. Confirm how profile mode is enabled, then define the dedicated run:stats event with per-message reply durations and verify that it is emitted only for profiled runs without being folded into run:complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100