Skip to content

Wait for spdlog sink to drain before completing tokens - #87

Merged
LimiNode merged 2 commits into
codex/-odrfrom
codex/investigate-ci-linux-test-failure-ggzlar
Dec 4, 2025
Merged

Wait for spdlog sink to drain before completing tokens#87
LimiNode merged 2 commits into
codex/-odrfrom
codex/investigate-ci-linux-test-failure-ggzlar

Conversation

@LimiNode

@LimiNode LimiNode commented Dec 4, 2025

Copy link
Copy Markdown
Owner

Summary

  • add pending-count tracking in the spdlog measuring sink and wait for async workers to drain before completing tokens
  • retain consumed payloads while signaling completion to avoid races that overcount recorder completions

Testing

  • LOGIT_BENCH_TOTAL=200 LOGIT_BENCH_WARMUP=20 LOGIT_BENCH_FILTER_LIB=spdlog LOGIT_BENCH_FILTER_ASYNC=1 LOGIT_BENCH_FILTER_SINK=file LOGIT_BENCH_FILTER_PRODUCERS=4 LOGIT_BENCH_FILTER_BYTES=40 ./build/logit_bench
  • LOGIT_BENCH_TOTAL=200 LOGIT_BENCH_WARMUP=20 LOGIT_BENCH_FILTER_LIB=spdlog LOGIT_BENCH_FILTER_ASYNC=1 LOGIT_BENCH_FILTER_PRODUCERS=4 LOGIT_BENCH_FILTER_BYTES=40 ./build/logit_bench

Codex Task

Ensure pending async messages drain before completing tokens to avoid recorder overcounts and incomplete latency capture.
@LimiNode
LimiNode merged commit 0cd55e4 into codex/-odr Dec 4, 2025
1 check passed
@LimiNode
LimiNode deleted the codex/investigate-ci-linux-test-failure-ggzlar branch December 4, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant