Skip to content

Optimize Acking & Event Resending#21309

Open
DylanTinianov wants to merge 3 commits intodevelopfrom
CRE-1931-Clean-AckCache
Open

Optimize Acking & Event Resending#21309
DylanTinianov wants to merge 3 commits intodevelopfrom
CRE-1931-Clean-AckCache

Conversation

@DylanTinianov
Copy link
Contributor

@DylanTinianov DylanTinianov commented Feb 25, 2026

Optimizes the following:

  • Publisher only resends events to trigger / workflowIDs that have not yet ACKd
  • Publisher resending test coverage
  • Added ackCache to publisher cleanup loop
  • Added Workflow Engine re-acking on duplicate events

@DylanTinianov DylanTinianov self-assigned this Feb 25, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2026

✅ No conflicts with other open PRs targeting develop

@github-actions
Copy link
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@DylanTinianov DylanTinianov changed the title Optimize Acking Optimize Ack & Event Resending Feb 25, 2026
@DylanTinianov DylanTinianov changed the title Optimize Ack & Event Resending Optimize Acking & Event Resending Feb 25, 2026
@DylanTinianov DylanTinianov requested a review from bolekk February 25, 2026 19:25
@DylanTinianov DylanTinianov marked this pull request as ready for review February 25, 2026 19:29
@DylanTinianov DylanTinianov requested review from a team as code owners February 25, 2026 19:29
@cl-sonarqube-production
Copy link

@trunk-io
Copy link

trunk-io bot commented Feb 25, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

// Get initial config for ticker setup
firstCfg := p.cfg.Load()
if firstCfg == nil {
p.lggr.Errorw("registrationCleanupLoop started but config not set")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: new name

registrationID := TriggerRegistrationID(e.cfg.WorkflowID, wrappedTriggerEvent.triggerIndex)
err = e.ackTriggerEvent(ctx, registrationID, &triggerEvent)
if err != nil {
e.lggr.Errorf("failed to re-ACK trigger event (eventID=%s): %v", triggerEvent.ID, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Errorw

}

if len(missingTriggerIDs) == 0 {
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe add a debug log here

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