Hi,
We’re running into a tricky issue with our workflows. When a child workflow fails, the parent workflow keeps running, which is what we expect (we do not rethrow). However, the parent workflow’s activities just stop working. It still handles signals and processes code, but it gets stuck when it hits any activity.
Here’s a quick rundown:
- We’re using the TypeScript SDK on Temporal Cloud.
- The child workflow fails due to a 3rd party API issue. We catch the error, log it, and move on without re-throwing it.
- After this, when the parent workflow gets signaled, it hangs when it reaches an activity.
- Also, we’ve noticed that the signals we sent are being retried every 10 minutes. The weird part is, there’s nothing in the Temporal console showing this retry behavior.
Here’s a code snippet of how we’re handling the child workflow:
try {
wf.executeChild(startInvoiceStatusCheckV3, {
workflowId: createInvoiceStatusCheckWorkflowId({
referenceId: invoiceToApprove.invoice.invoice.paymentReference,
}),
args: [{ data: invoiceToApprove }],
});
} catch (err) {
state.runningTask = null;
logger.error(`Error in invoice status check workflow: ${err}`);
// do nothing, this is expected
}
Note, if we reset the workflow its fine. but we got like 200+ workflows running with this issue (child workflow failed).
What could be the issue?
Thank you!