Unhandled Command Error

I have a workflow that runs two activities in parallel. i use a waitGroup to run them in parallel. One of the activities fails, and in this case the workflow context is terminated.

Even thou the workflow is marked as fail with the correct error, i’m seeing this Unhandled Command error. Do i need to cancel the other activity that is running in parallel?

Any suggestions on how to trouble shoot this?

This error occurs when you complete the workflow and ignore the second activity result. It is benign if you are indeed OK with ignoring the second activity result.

yeah i’m okay with ignoring it. However, i thought that if the context gets canceled, the cancel will propagate and kill the second activity as well.

Is there a proper way to clean up the second activity to not produce the error?

You cancel an activity and wait for it to complete before completing the workflow.