Issue Description: What’s happening?
When invoking a task using "waitForResponse": false
, the task is never invoked.
Reproduce the Issue: What steps can someone take to replicate the problem?
- Create a Trigger that invokes a task with
waitForResponse: false
- Cause Trigger to fire.
- Task never gets invoked.
Expected Behavior: What did you expect to happen?
I expect the task to be invoked and the Function invoking it to not wait for it to finish.
Actual Behavior: What actually happened?
The task was never invoked.
More details or screenshot
This code never invokes the function at all.
await ctx.invokeFunction(
"AI_REPORTS_QUERY",
{
data: { type: "UPDATE", reports: chunk, aIReportsScoreVariables }
},
{
waitForResponse: false
}
);
This code invokes the function just fine, but waits for it to finish which I don’t want.
await ctx.invokeFunction(
"AI_REPORTS_QUERY",
{
data: { type: "UPDATE", reports: chunk, aIReportsScoreVariables }
},
{
waitForResponse: true
}
);
@sebastian.scholl The docs also says that “options.waitForResponse (default: false)” Which is not currerntly correct. It defaults to “true” as leaving out the 3rd options argument, makes it wait for the Task to finish each time (and the task is invoked). However again my trigger fails due to the 20s timeout.
Docs: https://docs.8base.com/docs/8base-console/custom-functions/tasks