mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-31 13:49:48 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
18 lines
267 B
Python
18 lines
267 B
Python
import time
|
|
|
|
from examples.streaming.worker import streaming_workflow
|
|
|
|
|
|
def main() -> None:
|
|
ref = streaming_workflow.run_no_wait()
|
|
time.sleep(1)
|
|
|
|
stream = ref.stream()
|
|
|
|
for chunk in stream:
|
|
print(chunk)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|