Skip to content

Commit

Permalink
[interpreter] Capture the idempotencyKey early (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
igalshilman authored May 28, 2024
1 parent 2062d76 commit 1ce867b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/node-services/src/interpreter/test_driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,13 @@ export class Test {
for (const b of batch(this.generate(), 32)) {
const promises = b.map(({ id, program }) => {
idempotencyKey += 1;
const key = `${idempotencyKey}`;
const client = this.ingress.objectSendClient(InterpreterL0, `${id}`);
return retry(() =>
client.interpret(
program,
restate.SendOpts.from({
idempotencyKey: `${idempotencyKey}`,
idempotencyKey: key,
})
)
);
Expand Down

0 comments on commit 1ce867b

Please sign in to comment.