Skip to content

Commit 99bc73d

Browse files
committed
fix(usage): raise time limit and lower frequency
As discussed with @majamassarini in the DMs, there are numerous occurencies of the hourly usage statistics caching not meeting the Celery deadline. Therefore adjusting both timeout and frequency. • Timeout: 1800s → 3600s 30min → 60min To make sure it doesn't spam Sentry with unnecessary exceptions. • Frequency: 3600s → 10800s 1hr → 3hr To avoid parallel runs of the same task and also to avoid congestion with other tasks (e.g., regular jobs). Signed-off-by: Matej Focko <[email protected]>
1 parent 80e302f commit 99bc73d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packit_service/celery_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
},
5252
"get_usage_statistics": {
5353
"task": "packit_service.worker.tasks.get_usage_statistics",
54-
"schedule": 3600.0,
55-
"options": {"queue": "long-running", "time_limit": 1800},
54+
"schedule": 10800.0,
55+
"options": {"queue": "long-running", "time_limit": 3600},
5656
},
5757
}
5858

0 commit comments

Comments
 (0)