Hello,
I'm trying to call child task from a parent, and it seems the child is running indefinitely and never starts. I tried both trigger and triggerAndWait.
export const parentTask = task({
id: 'parent'
run: async (payload: { organizationId: string }) => {
console.log(`Start parent`);
await childTask.triggerAndWait({
organizationId: payload.organizationId
});
}
});
const childTask= task({
id: 'child',
run: async (payload: { organizationId: string }) => {
console.log(`Child task`);
}
});
"Start parent" is logged on the console. Child is stuck in "Executing" and also doesn't log anything. Config I have:
export const config: TriggerConfig = {
project: 'proj_xx',
logLevel: 'log',
retries: {
enabledInDev: true,
default: {
maxAttempts: 3,
minTimeoutInMs: 1000,
maxTimeoutInMs: 10000,
factor: 2,
randomize: true
}
}
};