Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Question: Picking a running workflow to trigger a signal method #10

@ganeshanj82

Description

@ganeshanj82

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions