You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK should support continue-as-new pattern for orchestration.
end-to-end example
it("should allow to continue as new",async()=>{constorchestrator: TOrchestrator=asyncfunction*(ctx: OrchestrationContext,input: number): any{if(input<10){ctx.continueAsNew(input+1,true);}else{returninput;}};taskHubWorker.addOrchestrator(orchestrator);awaittaskHubWorker.start();constid=awaittaskHubClient.scheduleNewOrchestration(orchestrator,1);conststate=awaittaskHubClient.waitForOrchestrationCompletion(id,undefined,30);expect(state);expect(state?.runtimeStatus).toEqual(OrchestrationStatus.ORCHESTRATION_STATUS_COMPLETED);expect(state?.serializedOutput).toEqual(10);},31000);
The SDK should support continue-as-new pattern for orchestration.
end-to-end example
Tested failed on local
Reference: #4
The text was updated successfully, but these errors were encountered: