forked from temporalio/samples-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
30 lines (26 loc) · 917 Bytes
/
__init__.py
File metadata and controls
30 lines (26 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Batch Iterator Sample.
This sample demonstrates the workflow iterator pattern where a workflow starts a
configured number of child workflows in parallel, processes them, then uses
continue-as-new for the next page of records.
The sample includes:
- IteratorBatchWorkflow: Main workflow that manages page-based processing
- RecordProcessorWorkflow: Child workflow that processes individual records
- get_records: Activity for loading records from external sources
"""
from batch_iterator.activities import get_records
from batch_iterator.shared import (
GetRecordsInput,
GetRecordsOutput,
ProcessBatchInput,
SingleRecord,
)
from batch_iterator.workflows import IteratorBatchWorkflow, RecordProcessorWorkflow
__all__ = [
"IteratorBatchWorkflow",
"RecordProcessorWorkflow",
"ProcessBatchInput",
"GetRecordsInput",
"GetRecordsOutput",
"SingleRecord",
"get_records",
]