Skip to content

Commit 5a69ec6

Browse files
committed
Add new ctx methods
1 parent ad1f1fd commit 5a69ec6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/workflows/workflow_wrapper_service.ts

+8
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ class ExclusiveContextImpl extends SharedContextImpl implements wf.WfContext {
132132
this.ctx.send(this.stateServiceApi).clearState(this.wfId, stateName);
133133
}
134134

135+
stateKeys(): Promise<string[]> {
136+
return this.ctx.stateKeys();
137+
}
138+
139+
clearAll(): void {
140+
this.ctx.clearAll();
141+
}
142+
135143
sideEffect<T>(
136144
fn: () => Promise<T>,
137145
retryPolicy?: restate.RestateUtils.RetrySettings

0 commit comments

Comments
 (0)