[PR #29617] fix: add BILLING_ENABLED check to delete_account_task #32488

Closed
opened 2026-02-21 20:51:30 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/29617

State: closed
Merged: No


Summary

  • Add BILLING_ENABLED check before calling BillingService.delete_account() in delete_account_task
  • Prevents errors in self-hosted deployments where billing is disabled

Fixes #29557

Test plan

  • Added unit tests for delete_account_task
  • Tests verify BillingService is called when BILLING_ENABLED=True
  • Tests verify BillingService is skipped when BILLING_ENABLED=False
  • All tests pass locally
**Original Pull Request:** https://github.com/langgenius/dify/pull/29617 **State:** closed **Merged:** No --- ## Summary - Add `BILLING_ENABLED` check before calling `BillingService.delete_account()` in `delete_account_task` - Prevents errors in self-hosted deployments where billing is disabled Fixes #29557 ## Test plan - [x] Added unit tests for `delete_account_task` - [x] Tests verify BillingService is called when BILLING_ENABLED=True - [x] Tests verify BillingService is skipped when BILLING_ENABLED=False - [x] All tests pass locally
yindo added the pull-request label 2026-02-21 20:51:30 -05:00
yindo closed this issue 2026-02-21 20:51:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32488