File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
packages/durabletask-js/src Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22// Licensed under the MIT License.
33
44import * as pb from "../proto/orchestrator_service_pb" ;
5- import { RetryTaskBase } from "./retry-task-base" ;
5+ import { RetryTaskBase , RetryTaskType } from "./retry-task-base" ;
66import { AsyncRetryHandler } from "./retry/retry-handler" ;
77import { createRetryContext } from "./retry/retry-context" ;
88import { TaskFailureDetails } from "./failure-details" ;
@@ -34,7 +34,7 @@ export class RetryHandlerTask<T> extends RetryTaskBase<T> {
3434 handler : AsyncRetryHandler ,
3535 action : pb . OrchestratorAction ,
3636 startTime : Date ,
37- taskType : "activity" | "subOrchestration" ,
37+ taskType : RetryTaskType ,
3838 ) {
3939 super ( action , startTime , taskType ) ;
4040 this . _handler = handler ;
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License.
33
4- import { RetryTaskBase } from "./retry-task-base" ;
4+ import { RetryTaskBase , RetryTaskType } from "./retry-task-base" ;
55import { RetryPolicy } from "./retry/retry-policy" ;
66import * as pb from "../proto/orchestrator_service_pb" ;
77
@@ -28,7 +28,7 @@ export class RetryableTask<T> extends RetryTaskBase<T> {
2828 retryPolicy : RetryPolicy ,
2929 action : pb . OrchestratorAction ,
3030 startTime : Date ,
31- taskType : "activity" | "subOrchestration" ,
31+ taskType : RetryTaskType ,
3232 ) {
3333 super ( action , startTime , taskType ) ;
3434 this . _retryPolicy = retryPolicy ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { ParentOrchestrationInstance } from "../types/parent-orchestration-insta
88import * as pb from "../proto/orchestrator_service_pb" ;
99import * as ph from "../utils/pb-helper.util" ;
1010import { CompletableTask } from "../task/completable-task" ;
11- import { RetryTaskBase } from "../task/retry-task-base" ;
11+ import { RetryTaskBase , RetryTaskType } from "../task/retry-task-base" ;
1212import { RetryableTask } from "../task/retryable-task" ;
1313import { RetryHandlerTask } from "../task/retry-handler-task" ;
1414import { RetryTimerTask } from "../task/retry-timer-task" ;
@@ -518,7 +518,7 @@ export class RuntimeOrchestrationContext extends OrchestrationContext {
518518 action : pb . OrchestratorAction ,
519519 id : number ,
520520 options : TaskOptions | SubOrchestrationOptions | undefined ,
521- taskType : "activity" | "subOrchestration" ,
521+ taskType : RetryTaskType
522522 ) : CompletableTask < TOutput > {
523523 if ( options ?. retry && isRetryPolicy ( options . retry ) ) {
524524 const retryableTask = new RetryableTask < TOutput > (
You can’t perform that action at this time.
0 commit comments