I have a Workflow, which currently calls an Activity (with a RetryPolicy, which runs the activity every 5 seconds, times out in 5 minutes).
I want to pass a message from each Activity run (every 5 seconds) to the Workflow.
Is a recommended approach for the Activity to pass the message in the return err?
And in the Workflow I have a loop which calls the Activity (for 5 minutes, every 5 seconds) (with no RetryPolicy – since my loop is now managing the retrying)?
An activity can send a signal to its parent or even to an earlier ancestor. However, if this is purely for visibility, consider including progress in an activity heartbeat and the make client call DescribeWorkflowExecution, which includes heartbeat values in the list of pending activities.