Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support streaming the results of generators #127

Merged
merged 8 commits into from
Mar 12, 2024
Merged

Support streaming the results of generators #127

merged 8 commits into from
Mar 12, 2024

Conversation

WardLT
Copy link
Collaborator

@WardLT WardLT commented Mar 8, 2024

Add the ability for each element from a generator to get sent back to the thinker before the task finishes.

Streaming is enabled by adding a queue to the PythonGeneratorMethod wrapper. The wrapper will use the queue to send intermediate results back to the Thinker while executing the generator.

  • Check in with team if they like the new teminology
  • Add example application showing how to use the features
  • Documentation for streaming, which includes warnings that PipeQueues doesn't work on distributed systems
  • Make submitting the task queue asynchronous [Wait until later]

@WardLT WardLT marked this pull request as ready for review March 8, 2024 17:03
@WardLT WardLT merged commit b9088f6 into master Mar 12, 2024
4 checks passed
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.

1 participant