Skip to content

Commit

Permalink
Added djago q
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Dec 19, 2024
1 parent 819e5aa commit 8696abc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/aiproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"drf_yasg",
"celery",
"django_celery_results",
"django_q",
]

MIDDLEWARE = [
Expand Down Expand Up @@ -227,8 +228,11 @@
Q_CLUSTER = {
"name": "DjangORM",
"workers": 4,
"recycle": 500,
"timeout": 60 * 10, # number of seconds
"retry": 60 * 6,
"max_retires": 1,
"recycle": 50,
"queue_limit": 50,
"timeout": 60 * 5, # number of seconds
"label": "Django Q",
"redis": CELERY_BROKER_URL,
}
Expand Down

0 comments on commit 8696abc

Please sign in to comment.