Skip to content

Conversation

@shijiesheng
Copy link
Member

What changed?

  • add threadpool executor to decision handler

Why?

Each workflow engine needs to be running in a separate thread with a deterministic event loop. The loop hook will be in the next PR

How did you test it?

Unit Test

Potential risks

Release notes

Documentation Changes

Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
def process_decision(
self, decision_task: PollForDecisionTaskResponse
) -> DecisionResult:
return asyncio.run(self._process_decision(decision_task))
Copy link
Member Author

Choose a reason for hiding this comment

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

This will be replaced with running inside the DeterministicEventLoop

@shijiesheng shijiesheng merged commit fa49df2 into cadence-workflow:main Nov 17, 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