mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 21:29:44 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
21 lines
431 B
Python
21 lines
431 B
Python
import asyncio
|
|
|
|
from hatchet_sdk import Hatchet
|
|
|
|
hatchet = Hatchet(debug=True)
|
|
|
|
|
|
async def main() -> None:
|
|
workflow_list = await hatchet.workflows.aio_list()
|
|
rows = workflow_list.rows or []
|
|
|
|
for workflow in rows:
|
|
print(workflow.name)
|
|
print(workflow.metadata.id)
|
|
print(workflow.metadata.created_at)
|
|
print(workflow.metadata.updated_at)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|