mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-02 06:39:57 -06:00
18 lines
398 B
Python
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())
|