Skip to content

Conversation

@Yuu6798
Copy link

@Yuu6798 Yuu6798 commented May 8, 2025

🐛 Problem

Concurrent workers can enqueue identical messages, producing duplicate outputs and potential double-billing.

🔧 Fix

Adds DuplicateGuardQueue with

  1. SHA-256 hash deduplication
  2. mutex to guarantee single enqueue

✅ Test

pytest -q test_duplicate_send.pygreen (1 passed)

📄 Files

  • queue_stub.py → minimal guard implementation
  • test_duplicate_send.py → multithread regression test
  • project_types.py → rename to avoid stdlib clash

Closes: #

@Yuu6798 Yuu6798 marked this pull request as draft May 13, 2025 18:28
@Yuu6798 Yuu6798 marked this pull request as ready for review May 14, 2025 11:39
@Yuu6798 Yuu6798 marked this pull request as draft May 14, 2025 11:40
@Yuu6798 Yuu6798 marked this pull request as ready for review May 14, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant