Skip to content

Added event types and minor improvements to executor#639

Merged
joeyballentine merged 3 commits intochaiNNer-org:mainfrom
RunDevelopment:exec-event-types
Jul 27, 2022
Merged

Added event types and minor improvements to executor#639
joeyballentine merged 3 commits intochaiNNer-org:mainfrom
RunDevelopment:exec-event-types

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

This is the third time I wanted to implement parallelism for broadcast data, but ended up doing refactoring instead...

Well, this time around, I did some minor refactoring around Executor and ExecutorContext, I added an AppContext class to strictly type app.ctx in run.py, and I completely typed server-sent events on the python side (I also found and fixed a small and inconsequential error in the TS types for events).

@RunDevelopment
Copy link
Copy Markdown
Member Author

asyncio.Queue was only recently made generic in 3.10.something, so I had to write a wrapper around Queue to make it type safe.

@joeyballentine joeyballentine merged commit 8c9135b into chaiNNer-org:main Jul 27, 2022
@RunDevelopment RunDevelopment deleted the exec-event-types branch July 27, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants