Skip to content

Trace coupon album debounce waits and finalization outcomes - #534

Merged
Szer merged 1 commit into
mainfrom
fix/coupon-batch-wait-tracing
Sep 29, 2026
Merged

Szer merged 1 commit into
mainfrom
fix/coupon-batch-wait-tracing

Conversation

@Szer

@Szer Szer commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Album OCR can finish several seconds before finalization while the debounce timer is still waiting. Traces currently leave that interval blank.

Add batchDebounce.wait from scheduling until the timer elapses or is superseded, preserving the originating trace and tagging the batch ID and requested delay. Tag finalizeBatch early exits so deferral and an unclaimed batch are distinguishable from completed finalization. The debounce duration and album behavior stay the same.

Validation: all 50 existing album behavior tests and both two-replica debounce tests pass; comment-ratio hooks pass. No tests were added or changed.

@Szer
Szer enabled auto-merge (squash) September 29, 2026 08:26
@Szer
Szer merged commit 688c09a into main Sep 29, 2026
8 checks passed
@Szer
Szer deleted the fix/coupon-batch-wait-tracing branch September 29, 2026 08:30
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.

1 participant