fix(orchestration): fix set step failure (#10031)
What: - copy data before saving checkpoint - removed unused data format function - properly handle registerStepFailure to not throw - emit onFinish event even when execution failed
This commit is contained in:
1 parent
7794faf49e
commit
1eef324af3
10 files changed
+217
-212
No files matched your search
@@ -215,9 +215,11 @@ class DistributedTransaction extends EventEmitter {
|
||||
this.modelId,
|
||||
this.transactionId
|
||||
)
|
||||
await DistributedTransaction.keyValueStore.save(key, data, ttl, options)
|
||||
|
||||
return data
|
||||
const rawData = JSON.parse(JSON.stringify(data))
|
||||
await DistributedTransaction.keyValueStore.save(key, rawData, ttl, options)
|
||||
|
||||
return rawData
|
||||
}
|
||||
|
||||
public static async loadTransaction(
|
||||
|
||||
Reference in new issue
Block a user