bb-plane-fork/apps/api/plane/bgtasks
Nikhil 935e4b5c33
[WEB-4720] chore: refactor and extend cleanup tasks for logs and versions (#7604)
* Refactor and extend cleanup tasks for logs and versions

- Consolidate API log deletion into cleanup_task.py - Add tasks to
delete old email logs, page versions, and issue description versions -
Update Celery schedule and imports for new tasks

* chore: update cleanup task with mongo changes

* fix: update log deletion task name for clarity

* fix: enhance MongoDB archival error handling in cleanup task

- Added a parameter to check MongoDB availability in the flush_to_mongo_and_delete function.
- Implemented error logging for MongoDB archival failures.
- Updated calls to flush_to_mongo_and_delete to include the new parameter.

* fix: correct parameter name in cleanup task function call

- Updated the parameter name from 'mode' to 'model' in the process_cleanup_task function to ensure consistency and clarity in the code.

* fix: improve MongoDB connection parameter handling in MongoConnection class

- Replaced direct access to settings with getattr for MONGO_DB_URL and MONGO_DB_DATABASE to enhance robustness.
- Added warning logging for missing MongoDB connection parameters.
2025-08-24 15:13:49 +05:30
..
__init__.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
analytic_plot_export.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
apps.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
cleanup_task.py [WEB-4720] chore: refactor and extend cleanup tasks for logs and versions (#7604) 2025-08-24 15:13:49 +05:30
copy_s3_object.py [WEB-4346] chore: refactor copy_s3_object bg task (#7298) 2025-07-17 13:10:34 +05:30
deletion_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
dummy_data_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
email_notification_task.py [WEB-4674] fix: update broken email preference links in notification emails #7574 2025-08-12 15:55:26 +05:30
event_tracking_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
export_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
exporter_expired_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
file_asset_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
forgot_password_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
issue_activities_task.py [WEB-4045] feat: restructuring of the external APIs for better maintainability (#7477) 2025-07-25 00:17:05 +05:30
issue_automation_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
issue_description_version_sync.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
issue_description_version_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
issue_version_sync.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
magic_link_code_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
notification_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
page_transaction_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
page_version_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
project_add_user_email_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
project_invitation_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
recent_visited_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
storage_metadata_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
user_activation_email_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
user_deactivation_email_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
webhook_task.py [WEB-4442] fix: removed the deleted labels from webhook payload (#7337) 2025-07-18 20:08:01 +05:30
work_item_link_task.py [WEB-4380] chore: work item link sentry error (#7316) 2025-07-08 15:43:42 +05:30
workspace_invitation_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
workspace_seed_task.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30