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:
committed by
GitHub
parent
7794faf49e
commit
1eef324af3
@@ -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