Files
hatchet/examples/python/quickstart/run.py
matt 4a50e454a6 Fix: Python docs examples (#2255)
* feat: client example

* fix: batch i

* fix: batch ii

* fix: batch iii

* fix: batch iv
2025-09-05 15:08:23 -04:00

18 lines
398 B
Python

import asyncio
from .workflows.first_task import SimpleInput, first_task
async def main() -> None:
# > Run a Task
result = await first_task.aio_run(SimpleInput(message="Hello World!"))
print(
"Finished running task, and got the transformed message! The transformed message is:",
result.transformed_message,
)
if __name__ == "__main__":
asyncio.run(main())