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

Fixed fakeProgress activity heartbeat #363

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ssrohit
Copy link

@ssrohit ssrohit commented May 12, 2024

What was changed

Changed activity(long-running activity) to heartbeat immediately

Why?

If the activity heartbeats after operation such as DB insertion or reads, when failed the activity retries from a progress point which is success, which results in inconsistency.

  1. Closes - fix heartbeating in fakeProgress activity  #366

  2. How was this tested:
    I have tested this in my personal project, one can test and replicate this by data insertion in the fakeProgress activity instead of await sleep(...) code line.

  3. Any docs updates needed?
    Yes, code sample in the documentation should be updated and this should be described for better understanding.
    https://docs.temporal.io/dev-guide/typescript/features#activity-heartbeats

@CLAassistant
Copy link

CLAassistant commented May 12, 2024

CLA assistant check
All committers have signed the CLA.

@ssrohit ssrohit marked this pull request as draft May 19, 2024 07:29
@ssrohit ssrohit closed this May 19, 2024
@ssrohit ssrohit reopened this May 19, 2024
@ssrohit ssrohit marked this pull request as ready for review May 19, 2024 08:11
@ssrohit
Copy link
Author

ssrohit commented May 19, 2024

This PR can close this issue #366

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.

2 participants