Skip to content

Conversation

shijiesheng
Copy link
Member

What changed?

  • moved workflow package into internal
  • added workflow context that will activate on process_decision function
  • added a generator for HistoryEvent which will read pages to get full history. It's a util function

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
from cadence.workflow import WorkflowContext, WorkflowInfo


class Context(WorkflowContext):
Copy link
Member

Choose a reason for hiding this comment

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

nit: importing this context from cadence._internal.workflow.context import Context will confuse people with from cadence.workflow import WorkflowContext

Copy link
Member Author

Choose a reason for hiding this comment

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

i think that's a misunderstanding. This is just an internal implementation that user will never get exposed to.

@shijiesheng shijiesheng merged commit 016cc54 into cadence-workflow:main Sep 12, 2025
5 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