Skip to content

report capacity - #1048

Merged
taylordowns2000 merged 5 commits into
mainfrom
report-capacity
Oct 7, 2025
Merged

taylordowns2000 merged 5 commits into
mainfrom
report-capacity

Conversation

@taylordowns2000

@taylordowns2000 taylordowns2000 commented Oct 6, 2025 •

Copy link
Copy Markdown
Member

When joining the worker_channel, this makes the worker report their configured run capacity.

It's used by OpenFn/lightning#3725 so that Lightning can check to see how much capacity exists (connected workers * individual worker capacity) when it wants.

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to know!):

  • Code generation (copilot but not intellisense)
  • Learning or fact checking
  • Strategy / design
  • Optimisation / refactoring
  • Translation / spellchecking / doc gen
  • Other
  • I have not used AI

You can read more details in our Responsible AI Policy

Release branch checklist

Delete this section if this is not a release PR.

If this IS a release branch:

  • Run pnpm changeset version from root to bump versions
  • Run pnpm install
  • Commit the new version numbers
  • Run pnpm changeset tag to generate tags
  • Push tags git push --tags

Tags may need updating if commits come in after the tags are first generated.

@github-project-automation github-project-automation Bot moved this to New Issues in Core Oct 6, 2025
@taylordowns2000
taylordowns2000 marked this pull request as ready for review October 6, 2025 16:19

@josephjclark josephjclark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool - I've left a few comments, mostly stylistic but those t.pass() assertions will make your tests pass even if you comment out the actual feature code.

Comment thread packages/ws-worker/src/mock/sockets.ts Resolved
@github-project-automation github-project-automation Bot moved this from New Issues to In review in Core Oct 6, 2025
@taylordowns2000

Copy link
Copy Markdown
Member Author

@josephjclark , simplified significantly and (i think) addressed all your requests

@taylordowns2000
taylordowns2000 merged commit 98b5ee6 into main Oct 7, 2025
7 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in Core Oct 7, 2025
@josephjclark
josephjclark deleted the report-capacity branch October 7, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants