Hi all,
In python I have non async activity. From this activity I would like to send signal to the parent workflow.
I know how to get the workflow_handle from within the activity and now when I’m trying to send signal, it is not working because I can’t put await on this operation (I’m inside a non async function). I can’t find any sync version of sending the signal.
Can someone direct me to example in python how to do it?
Is it possible at all?
Thanks
To call an async function from a non-async function is a general Python concern. See the Python docs here. You should probably call loop.call_soon_threadsafe
where loop
is the asyncio.get_running_loop()
captured at client creation time.