Skip to content

Conversation

lina-temporal
Copy link
Contributor

What changed?

  • Cleaned up s.addedTasks within test suites

Why?

  • In preparation for adding the Visibility component, which itself also adds tasks (breaking some of the existing asserts).
  • I manually verified that the backfiller is properly generating rescheduled tasks and that they validate in CloseTransaction.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@lina-temporal lina-temporal requested a review from yycptt September 4, 2025 15:45
@lina-temporal lina-temporal requested a review from a team as a code owner September 4, 2025 15:45
task, ok := s.addedTasks[0].(*tasks.ChasmTaskPure)
s.True(ok)
s.Equal(chasm.TaskScheduledTimeImmediate, task.GetVisibilityTime())
s.True(s.hasTask(&tasks.ChasmTaskPure{}, chasm.TaskScheduledTimeImmediate))
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this PR, but I don't think transfer queue supports pure task. That combination doesn't really make sense I think and the pure task logic can be executed in the same transaction instead.

Copy link
Member

@yycptt yycptt left a comment

Choose a reason for hiding this comment

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

Approved this PR but we need to sync offline re. immediate pure task.

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