Skip to content

[Scheduler] Log decisions and task events via the EventLog#10530

Merged
lina-temporal merged 1 commit into
mainfrom
eventlog-use
Jun 5, 2026
Merged

[Scheduler] Log decisions and task events via the EventLog#10530
lina-temporal merged 1 commit into
mainfrom
eventlog-use

Conversation

@lina-temporal
Copy link
Copy Markdown
Contributor

@lina-temporal lina-temporal commented Jun 4, 2026

What changed?

  • Added internal EventLog entries for task processing and engine decision points.

Why?

  • Gives us a nice audit log of what's changing with scheduler at specific timestamps, akin to V1's event history.

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)

Potential risks

  • Every write requries access to a CHASM mutableContext, which implies a write will already occur on said component (this is how CHASM's dirty-state tracking works). Additionally, all event logs have strict upper bounds in length and individual item sizes.

@lina-temporal lina-temporal requested a review from a team as a code owner June 4, 2026 18:38
s.EventLog.Get(ctx).LogEvent(ctx, fmt.Sprintf("unpaused via API: %s", req.FrontendRequest.Patch.Unpause))
}

if err := s.handlePatch(ctx, req.FrontendRequest.Patch); err != nil {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This also does generate a log entry, by virtue of each backfiller added generating a log entry.

Copy link
Copy Markdown
Contributor

@chaptersix chaptersix left a comment

Choose a reason for hiding this comment

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

Do you plan on adding logs for: UpdateSchedule, PatchSchedule, create from migration, and when there's no callbacks to attach to workflows?

@chaptersix
Copy link
Copy Markdown
Contributor

generally LGTM

@lina-temporal
Copy link
Copy Markdown
Contributor Author

Do you plan on adding logs for: UpdateSchedule, PatchSchedule, create from migration, and when there's no callbacks to attach to workflows?

All of these are present.

@lina-temporal lina-temporal merged commit 9e389ce into main Jun 5, 2026
51 checks passed
@lina-temporal lina-temporal deleted the eventlog-use branch June 5, 2026 17:08
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.

3 participants