Skip to content

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented Mar 27, 2025

What changed?

  • Delete task.Info interface and use persistence.Task instead
  • Refactor task executors to use concrete persistence.Task types for task execution
  • Unify some helper methods in task package

Why?

  • To get rid of persistence.TransferTaskInfo and persistence.TimerTaskInfo
  • To simplify code and reduce type conversions

How did you test it?
unit tests, integration tests

Potential risks

Release notes

Documentation Changes

@Shaddoll Shaddoll changed the title wip: Refactor task executor to use specific task types Refactor task executors to use concrete persistence.Task types for task execution Apr 2, 2025
tag.TaskType(transferTask.TaskType),
tag.FailoverVersion(transferTask.GetVersion()),
tag.Timestamp(transferTask.VisibilityTimestamp),
tag.WorkflowEventID(transferTask.ScheduleID))
Copy link
Member

Choose a reason for hiding this comment

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

schedule id is not available?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is only defined in certain task types, so we don't have a method for the interface

@Shaddoll Shaddoll merged commit 7e97270 into cadence-workflow:master Apr 2, 2025
22 checks passed
@Shaddoll Shaddoll deleted the p6 branch April 2, 2025 19:06
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