()
| 105 | } |
| 106 | |
| 107 | async onModuleDestroy(): Promise<void> { |
| 108 | if (this.connection) { |
| 109 | await this.connection.close(); |
| 110 | this.connection = undefined; |
| 111 | this.clientPromise = undefined; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | async startWorkflow(options: StartWorkflowOptions): Promise<WorkflowStartResult> { |
| 116 | const client = await this.getClient(); |