I call continue-as-new considering either the history size of 3000 or the continueAsNewSuggested parameter from the object returned by the workflowInfo function.
Since the child workflows were started at the beginning of the main workflow, they have already been initiated.
What would happen if the parent workflow calls continue-as-new and a child sends a signal at the exact moment when the new workflow has not yet started? Since we only have the old workflow with the continue-as-new status, this error Unable to signal external workflow because it was not found would occur, considering that it is part of a closed status
I don’t think this should be a problem, as continue-as-new is an atomic operation. The test server doesn’t implement this atomically, so the race condition you described could rarely appear in the unit testing only.