mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 05:09:44 -06:00
15 lines
327 B
Python
15 lines
327 B
Python
from hatchet_sdk import new_client
|
|
from dotenv import load_dotenv
|
|
import json
|
|
|
|
load_dotenv()
|
|
|
|
client = new_client()
|
|
|
|
workflowRunId = client.admin.run_workflow("ManualTriggerWorkflow", {
|
|
"test": "test"
|
|
})
|
|
|
|
client.listener.on(workflowRunId, lambda event: print(
|
|
'EVENT: ' + event.type + ' ' + json.dumps(event.payload)))
|