mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-31 13:49:48 -06:00
* fix: stop trying to parse payloads back from json
* feat: streaming example
* feat: aio output
* fix: lint
* feat: sync and async examples
* fix: small issues
* fix: one more small thing
* chore: version
* fix: lint
* fix: add sleeps
* feat: factor out run_async_from_sync
* Revert "feat: factor out run_async_from_sync"
This reverts commit fb37395913.
* fix: schedule trigger namespace issue
* fix: log error if action payload fails to decode but don't raise out of listener
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()
|