Skip to content

Conversation

@shijiesheng
Copy link
Member

@shijiesheng shijiesheng commented Nov 20, 2025

What changed?

  • moved event loop, workflow task and dataconverter from WorkflowEngine inside of the WorkflowInstance (A similar implementation of ReplayWorkflow in java
  • removed decisionhandler dependency in WorkflowEngine
  • set workflow completion result decision if workflow has finished.

Why?

Current processing doesn't return workflow completion result

How did you test it?

WIP Unit Test

Potential risks

Release notes

Documentation Changes

Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
return self._replay_current_time_milliseconds

@contextmanager
def _activate(self) -> Iterator["Context"]:
Copy link
Member Author

Choose a reason for hiding this comment

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

override so I could steal the activated context rather than exposed WorkflowContext. Maybe this is not necessary but I'm trying to avoid direct access to self._context inside WorkflowEngine.

Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
@shijiesheng shijiesheng merged commit 6e7630c into cadence-workflow:main Nov 24, 2025
6 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.

2 participants