Skip to content

Staging - #23

Merged
suguanYang merged 2 commits into
mainfrom
staging
May 12, 2026
Merged

suguanYang merged 2 commits into
mainfrom
staging

Conversation

@suguanYang

@suguanYang suguanYang commented May 12, 2026

Copy link
Copy Markdown
Contributor

Closes #25

Summary

  • Make first-use user balance initialization idempotent for concurrent billing-credit requests.
  • Keep the initial grant/payment side effects single-write.
  • Downgrade expected insufficient-credit worker parse billing logs from error to warning while preserving PAYMENT_REQUIRED failures.

Verification

  • uv run --package knowhere-api-app --group dev pytest apps/api/tests/contract/test_billing_contract.py -q
  • uv run --package knowhere-worker-app --group dev pytest apps/worker/tests/contract/test_parse_task_contract.py -q
  • CI checks for this PR.

@suguanYang
suguanYang merged commit d9ddbca into main May 12, 2026
13 checks passed
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.

Harden billing initialization and insufficient-credit logging

1 participant