Skip to content

Commit

Permalink
Set higher time limit for DB maintenance task (#2569)
Browse files Browse the repository at this point in the history
Set higher time limit for DB maintenance task

Discarding the old package configurations may take longer time, let's try to set the limit higher that the default.

Reviewed-by: Nikola Forró
  • Loading branch information
2 parents 08f84bf + e40a02c commit adf232e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packit_service/celery_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"database-maintenance": {
"task": "packit_service.worker.tasks.database_maintenance",
"schedule": crontab(minute=0, hour=1), # nightly at 1AM
"options": {"queue": "long-running"},
"options": {"queue": "long-running", "time_limit": 1800},
},
"check-onboarded-projects": {
"task": "packit_service.worker.tasks.run_check_onboarded_projects",
Expand Down

0 comments on commit adf232e

Please sign in to comment.