Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: update celery cron configurations (#6776)

Nikhil04fb13cbcadd
diff --git a/apiserver/plane/celery.py b/apiserver/plane/celery.py
index 740c16b1d4..29af49bdc1 100644
--- a/apiserver/plane/celery.py
+++ b/apiserver/plane/celery.py
@@ -15,34 +15,35 @@ app = Celery("plane")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.conf.beat_schedule = {
- # Executes every day at 12 AM
+ # Intra day recurring jobs
+ "check-every-five-minutes-to-send-email-notifications": {
+ "task": "plane.bgtasks.email_notification_task.stack_email_notification",
+ "schedule": crontab(minute="*/5"), # Every 5 minutes
+ },
+ "run-every-6-hours-for-instance-trace": {
+ "task": "plane.license.bgtasks.tracer.instance_traces",
+ "schedule": crontab(hour="*/6", minute=0), # Every 6 hours
+ },
+ # Occurs once every day
+ "check-every-day-to-delete-hard-delete": {
+ "task": "plane.bgtasks.deletion_task.hard_delete",
+ "schedule": crontab(hour=0, minute=0), # UTC 00:00
+ },
"check-every-day-to-archive-and-close": {
"task": "plane.bgtasks.issue_automation_task.archive_and_close_old_issues",
- "schedule": crontab(hour=0, minute=0),
+ "schedule": crontab(hour=1, minute=0), # UTC 01:00
},
"check-every-day-to-delete_exporter_history": {
"task": "plane.bgtasks.exporter_expired_task.delete_old_s3_link",
- "schedule": crontab(hour=0, minute=0),
+ "schedule": crontab(hour=1, minute=30), # UTC 01:30
},
"check-every-day-to-delete-file-asset": {
"task": "plane.bgtasks.file_asset_task.delete_unuploaded_file_asset",
- "schedule": crontab(hour=0, minute=0),
- },
- "check-every-five-minutes-to-send-email-notifications": {
- "task": "plane.bgtasks.email_notification_task.stack_email_notification",
- "schedule": crontab(minute="*/5"),
- },
- "check-every-day-to-delete-hard-delete": {
- "task": "plane.bgtasks.deletion_task.hard_delete",
- "schedule": crontab(hour=0, minute=0),
+ "schedule": crontab(hour=2, minute=0), # UTC 02:00
},
"check-every-day-to-delete-api-logs": {
"task": "plane.bgtasks.api_logs_task.delete_api_logs",
- "schedule": crontab(hour=0, minute=0),
- },
- "run-every-6-hours-for-instance-trace": {
- "task": "plane.license.bgtasks.tracer.instance_traces",
- "schedule": crontab(hour="*/6", minute=0),
+ "schedule": crontab(hour=2, minute=30), # UTC 02:30
},
}