We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12f9149 + e879fee commit e0196baCopy full SHA for e0196ba
1 file changed
src/services/temporal/website.service.ts
@@ -64,8 +64,11 @@ class TemporalWebsiteService extends TemporalCoreService {
64
console.log(workflowId);
65
const client: Client = await this.getClient();
66
const handle = client.workflow.getHandle(workflowId);
67
- console.log(handle);
68
- await handle.terminate();
+ const description = await handle.describe();
+ console.log(description);
69
+ if (description.status.name === 'TERMINATED') {
70
+ await handle.terminate();
71
+ }
72
}
73
74
0 commit comments