How to send a Signal-With-Start in Python
To send a Signal-With-Start in Python, use the start_workflow()
method and pass the start_signal
argument with the name of your Signal, instead of using a traditional Workflow start.
async def main():
client = await Client.connect("localhost:7233", namespace="your-namespace")
handle = await client.start_workflow(
"your-workflow-name",
"some arg",
id="your-workflow-id",
task_queue="your-task-queue",
start_signal="your-signal-name",
)