Skip to content

Conversation

@ConnorKirk
Copy link
Contributor

Summary

The Idempotency utility uses the DurableContext.durableExecutionMode value to determine if a function is replaying or executing. This allows us to discriminate between duplicate invokes (bad), and replays of the same function (good).

The value of the string changed, from REPLAY_MODE to ReplayMode. The earlier PR #4834 didn't work, as it would never see the expected string.

Changes

Check for ReplayMode instead of REPLAY_MODE

There also seems to be some formatting changes - I'm not sure why these didn't format correctly in the staging environment.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4831 (again)


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

The durableExecutionMode property updated it's value types. This commit
uses the correct value
@boring-cyborg boring-cyborg bot added the idempotency This item relates to the Idempotency Utility label Dec 2, 2025
@pull-request-size pull-request-size bot added the size/S PR between 10-29 LOC label Dec 2, 2025
@pull-request-size pull-request-size bot added size/XL PRs between 500-999 LOC, often PRs that grown with feedback and removed size/S PR between 10-29 LOC labels Dec 3, 2025
@boring-cyborg boring-cyborg bot added the tests PRs that add or change tests label Dec 3, 2025
@ConnorKirk
Copy link
Contributor Author

ConnorKirk commented Dec 3, 2025

My pre-commit has clobbered the formatting for the file. I added two tests to the end of the makeIdempotent.test.js file.
I'm reluctant to skip the pre-commit formatting, but this seems odd?

@ConnorKirk
Copy link
Contributor Author

#4839 - Task for adding E2E tests

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

Copy link
Contributor

@sdangol sdangol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and looks good!

@sdangol sdangol merged commit 919c26d into main Dec 3, 2025
50 checks passed
@sdangol sdangol deleted the bug/df-replay-mode branch December 3, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idempotency This item relates to the Idempotency Utility size/XL PRs between 500-999 LOC, often PRs that grown with feedback tests PRs that add or change tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: add support for durable function in Idempotency Utility

3 participants