You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/schedule
-LAN- b6fdb6c7cf
refactor: migrate direct mail.send usages to EmailI18nService
- Updated mail_enterprise_task.py to use EmailI18nService.send_raw_email()
- Updated queue_monitor_task.py to use EmailI18nService with new QUEUE_MONITOR_ALERT type
- Updated mail_clean_document_notify_task.py to use EmailI18nService with new DOCUMENT_CLEAN_NOTIFY type
- Added send_raw_email() method for backward compatibility with pre-rendered HTML emails
- Added new email types: ENTERPRISE_CUSTOM, QUEUE_MONITOR_ALERT, DOCUMENT_CLEAN_NOTIFY
- Added email template configurations for the new email types
- Removed unused imports (render_template, mail) from refactored files

This change centralizes email handling through EmailI18nService while maintaining
backward compatibility for legacy email sending patterns.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
7 months ago
..
clean_embedding_cache_task.py fix: Cannot find declaration to go to CLEAN_DAY_SETTING (#10157) 1 year ago
clean_messages.py fix: drop some type fixme (#20344) 8 months ago
clean_unused_datasets_task.py fix: replace all dataset.Model.query to db.session.query(Model) (#19509) 9 months ago
create_tidb_serverless_task.py fix: replace all dataset.Model.query to db.session.query(Model) (#19509) 9 months ago
mail_clean_document_notify_task.py refactor: migrate direct mail.send usages to EmailI18nService 7 months ago
queue_monitor_task.py refactor: migrate direct mail.send usages to EmailI18nService 7 months ago
update_tidb_serverless_status_task.py fix: replace all dataset.Model.query to db.session.query(Model) (#19509) 9 months ago