feat(workflows-sdk,orchestration): async step as background task (#6886)

This commit is contained in:
Carlos R. L. Rodrigues
2024-04-03 06:17:00 -03:00
committed by GitHub
parent 3dcf5224a1
commit a164c0d512
17 changed files with 290 additions and 34 deletions

View File

@@ -190,7 +190,7 @@ export class RedisDistributedTransactionStorage extends DistributedTransactionSt
stepId: step.id,
},
{
delay: interval * 1000,
delay: interval > 0 ? interval * 1000 : undefined,
jobId: this.getJobId(JobType.RETRY, transaction, step),
removeOnComplete: true,
}
@@ -266,6 +266,9 @@ export class RedisDistributedTransactionStorage extends DistributedTransactionSt
if (step) {
key.push(step.id, step.attempts + "")
if (step.isCompensating()) {
key.push("compensate")
}
}
return key.join(":")