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

Add test to verify that Schedule memo can be updated #569

Merged
merged 2 commits into from
May 21, 2024

Conversation

antlai-temporal
Copy link
Contributor

What was changed

Add a test to verify that #433 has been resolved in current server versions

Checklist

  1. Closes
    Updating Schedule with memo option not updating memo #433

"--memo", "bar=2",
)
s.NoError(res.Err)
s.Eventually(func() bool {
Copy link
Member

Choose a reason for hiding this comment

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

Why "eventually"? Is this not updated immediately and does describe not return the strongly consistent value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Frankly, I don't know, I just copied it from the other test that updates the schedule. My guess is that it starts another workflow for the schedule in the background, and that's why it is eventually consistent...

Copy link
Member

Choose a reason for hiding this comment

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

It sends a signal to the schedule workflow, which updates its own memo. So yes, it's not currently synchronous, sadly. We can fix this with update later.

@antlai-temporal antlai-temporal merged commit 781835e into temporalio:main May 21, 2024
7 checks passed
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.

3 participants