Skip to content

Commit 9f7f0da

Browse files
committed
add 'reset' to activity cancellation details
1 parent 582e4f0 commit 9f7f0da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/common/src/activity-cancellation-details.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,22 @@ export class ActivityCancellationDetails {
1313
readonly paused: boolean;
1414
readonly timedOut: boolean;
1515
readonly workerShutdown: boolean;
16+
readonly reset: boolean;
1617

1718
private constructor(
1819
notFound: boolean = false,
1920
cancelRequested: boolean = false,
2021
paused: boolean = false,
2122
timedOut: boolean = false,
22-
workerShutdown: boolean = false
23+
workerShutdown: boolean = false,
24+
reset: boolean = false
2325
) {
2426
this.notFound = notFound;
2527
this.cancelRequested = cancelRequested;
2628
this.paused = paused;
2729
this.timedOut = timedOut;
2830
this.workerShutdown = workerShutdown;
31+
this.reset = reset;
2932
}
3033

3134
static fromProto(
@@ -39,7 +42,8 @@ export class ActivityCancellationDetails {
3942
proto.isCancelled ?? false,
4043
proto.isPaused ?? false,
4144
proto.isTimedOut ?? false,
42-
proto.isWorkerShutdown ?? false
45+
proto.isWorkerShutdown ?? false,
46+
proto.isReset ?? false
4347
);
4448
}
4549
}

0 commit comments

Comments
 (0)