Skip to content
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

bug(PayInAdvance) - Add dedicated lock_key_arguments for pay in advance jobs #2755

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

nudded
Copy link
Contributor

@nudded nudded commented Oct 29, 2024

After adding the PreciseTotalAmountCents to Clickhouse, we now have discrepancies between event json. The one coming from Kafka always has "0.0" set for precise total amount cents while the ruby one has nil.

This causes 2 duplicate invoice jobs to be enqueued for the same event. The uniqueness key compared all arguments to the job.

The fix is to limit what is used as lock_key via the lock_key_arguments method.

@nudded nudded merged commit 3321c8e into main Oct 29, 2024
6 checks passed
@nudded nudded deleted the bug-duplicate-pay-in-advance-jobs branch October 29, 2024 20:49
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.

2 participants