forked from hatchet-dev/hatchet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from hatchet_sdk import Hatchet | ||
from dotenv import load_dotenv | ||
import json | ||
|
||
load_dotenv() | ||
|
||
client = Hatchet().client | ||
|
||
workflowRunId = client.admin.run_workflow("ManualTriggerWorkflow", { | ||
"test": "test" | ||
}) | ||
|
||
for event in client.listener.generator(workflowRunId): | ||
print('EVENT: ' + event.type + ' ' + json.dumps(event.payload)) | ||
|
||
# TODO - need to hangup the listener if the workflow is completed |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters