Skip to content

Commit

Permalink
fix: cast workers count to int
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmcphee committed Nov 20, 2024
1 parent 9aa5e7f commit 6cc2b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class Media:
# Django Q Configuration (using PostgreSQL as broker)
Q_CLUSTER = {
'name': 'OpenUnited',
'workers': os.getenv('DJANGO_Q_WORKERS', '4'),
'workers': int(os.getenv('DJANGO_Q_WORKERS', '4')),
'recycle': 500,
'timeout': 300,
'retry': 600,
Expand Down

0 comments on commit 6cc2b22

Please sign in to comment.