You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sample implementation of a batch processing Workflow that maintains a sliding window of record processing Workflows.
4
+
5
+
A SlidingWindowWorkflow starts a configured number (sliding window size) of RecordProcessorWorkflow children in parallel.
6
+
Each child processes a single record. When a child completes a new child is started.
7
+
8
+
A SlidingWindowWorkflow calls continue-as-new after starting a preconfigured number of children to keep its history size bounded.
9
+
A RecordProcessorWorkflow reports its completion through a Signal to its parent.
10
+
This allows to notify a parent that called continue-as-new.
11
+
12
+
A single instance of SlidingWindowWorkflow has limited window size and throughput.
13
+
To support larger window size and overall throughput multiple instances of SlidingWindowWorkflow run in parallel.
14
+
15
+
#### Running the Sliding Window Batch Sample
16
+
17
+
Make sure the [Temporal Server is running locally](https://learn.temporal.io/getting_started/python/dev_environment/#set-up-a-local-temporal-service-for-development-with-temporal-cli).
0 commit comments