Spawns a child workflow in fire-and-forget mode. The parent workflow
continues immediately without waiting for the child to complete.
Returns the child's job ID for later reference (e.g., to interrupt
or query the child).
This is a convenience wrapper around execChild with await: false.
Example
import { Durable } from'@hotmeshio/hotmesh';
exportasyncfunctiondispatchWorkflow(taskId: string): Promise<string> { // Fire-and-forget: start the child and continue immediately constchildJobId = awaitDurable.workflow.startChild({ taskQueue:'background', workflowName:'longRunningTask', args: [taskId], });
// Optionally store the child ID for monitoring constsearch = awaitDurable.workflow.search(); awaitsearch.set({ childJobId });
Spawns a child workflow in fire-and-forget mode. The parent workflow continues immediately without waiting for the child to complete. Returns the child's job ID for later reference (e.g., to interrupt or query the child).
This is a convenience wrapper around
execChildwithawait: false.Example