Hi,
I am evaluating using cadence (python) for a workflow project. An important part of the workflow is to call a 3rd party service and wait for a result to come back (with timeout). This seems like a good use for the signal method. The 3rd party service message will be received asynchronously from SQS. In this case, how do I get the right workflow instance to trigger the signal on assuming that there are several workflows running with different ids? The pattern I was thinking of using in the sqs handler is:
- Retrieve a id from the message that maps to a running workflow id via some mechanism
- Retrieve a running workflow with that id if one exists
- If a workflow exists with that specific id, trigger the signal method on it.
Please let me know if this is possible, I was unable to find it from reading the code, but I might have missed something.
Hi,
I am evaluating using cadence (python) for a workflow project. An important part of the workflow is to call a 3rd party service and wait for a result to come back (with timeout). This seems like a good use for the signal method. The 3rd party service message will be received asynchronously from SQS. In this case, how do I get the right workflow instance to trigger the signal on assuming that there are several workflows running with different ids? The pattern I was thinking of using in the sqs handler is:
Please let me know if this is possible, I was unable to find it from reading the code, but I might have missed something.