Skip to content

fix: calculate_sla emits no events on idempotent duplicate #30

Description

@Icahbod

calculate_sla returns the previously computed result on an unchanged duplicate submission without publishing the sla_calc or set_int events that backend indexers rely on to reconcile escrow. Retries from a backend that never observed the original events therefore cannot recover the workflow state. Either re-emit the sla_calc and set_int events on the idempotent return path so deliveries are at-least-once, or update the documentation to state explicitly that successful duplicate calls are at-most-once and backends must implement their own retry-and-replay layer.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignbugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions