-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Trigger Capability Event ACKs #20628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
… into PLEX-1460-delivery-acks
|
I see you updated files related to
|
CORA - Pending Reviewers
Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown For more details, see the full review summary. |
… into PLEX-1460-delivery-acks
… into PLEX-1460-delivery-acks
|
| } | ||
| // TODO: We need TriggerCapID here, not the registration triggerID in order to match? | ||
| // TODO: Or we call AckEvent on all triggers and they must noop if triggerID doesn't match? | ||
| if info.ID == triggerID { // ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be fixed by parameterizing the trigger method name, as it happens with register/unregister, and do the lookup using that, not the triggerID
| startTime := e.cfg.Clock.Now() | ||
| executionLogger.Infow("Workflow execution starting ...") | ||
| _ = events.EmitExecutionStartedEvent(ctx, loggerLabels, triggerEvent.ID, executionID) | ||
| registrationID := fmt.Sprintf("trigger_reg_%s_%d", e.cfg.WorkflowID, wrappedTriggerEvent.triggerIndex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you extract this trigger_reg_%s_%d as a constant, and re use it in the engine.go#runTriggerSubscriptionPhase() and in the existing test TestEngine_Execution()?




Implements Trigger Event ACKs via the Workflow Engine and Don2Don communication.
EPIC Guaranteed Trigger Delivery
Requires
Extend Capabilities (chainlink-common)
Integrate BaseTriggerCapability with LogTriggerService (capabilities)