temporalio / sdk-python

Temporal Python SDK
MIT License
457 stars 68 forks source link

[Feature Request] Support a `limit` parameter in `replay_workflows` and `workflow_replay_iterator` #610

Open Sushisource opened 1 month ago

Sushisource commented 1 month ago

Python stdlib is unfortunately very lacking when it comes to ways to work with AsyncIterators. Add this to the fact that our API doesn't support a LIMIT clause, but only page sizes, we have no good way to stop these functions early.

Support that with a limit parameter.