Skip to content

Conversation

@kaibocai
Copy link
Member

Issue describing the changes in this PR

resolves #182

This PR fix a bug with the carrayOverEvents of continueAsNew API. The old implementation loops through the whole newEvents list to add EVENTRAISED to carrayOverEvents, which is not correct. With this fix, it only loops through events that haven't been processed in the newEvents list.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes are added to the CHANGELOG.md
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

@kaibocai kaibocai changed the title fix infinite loop when use continueasnew after wait external event Fix infinite loop when use continueasnew after wait external event Nov 14, 2023
Copy link
Contributor

@kamperiadis kamperiadis left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you @kaibocai

@kaibocai kaibocai merged commit 8d3c1d4 into main Nov 16, 2023
@kaibocai kaibocai deleted the kaibocai/fix-issue182 branch November 16, 2023 17:56
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.

Eternal Orchestrator is replaying external event infinitely

3 participants