Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow replayer to use local activities with string names #745

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

cretz
Copy link
Member

@cretz cretz commented Feb 28, 2022

What was changed

Added small piece of code to detect whether replayer is being used and to use a dummy workflow in those cases

Why?

Unfortunately, the SDK has local activity validation logic to check whether the string-named activity is registered that runs even during replay. The replayer does not require activity registration, so this must be skipped. Out of fear of making significant alterations to local activity validation/execution ordering, a very specific exception was added for replayer.

Checklist

  1. Closes Execute local activity by string name fails during replay #740

…eplay

# Conflicts:
#	test/integration_test.go
@cretz cretz merged commit d409984 into temporalio:master Mar 1, 2022
@cretz cretz deleted the local-act-replay branch March 1, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Execute local activity by string name fails during replay
2 participants