send confirm script

This commit is contained in:
Steve Androulakis
2025-01-02 10:52:22 -08:00
parent 0caa937e4f
commit d0c200ebe8
2 changed files with 24 additions and 1 deletions

20
scripts/send_confirm.py Normal file
View File

@@ -0,0 +1,20 @@
import asyncio
import sys
from temporalio.client import Client
async def main():
# 1) Connect to Temporal and signal the workflow
client = await Client.connect("localhost:7233")
workflow_id = "agent-workflow"
await client.get_workflow_handle(workflow_id).signal("confirm")
if __name__ == "__main__":
if len(sys.argv) != 1:
print("Usage: python send_confirm.py'")
else:
asyncio.run(main())