Skip to content

Commit

Permalink
fix: remove int casting of worker count from env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmcphee committed Nov 20, 2024
1 parent a5e0ea8 commit 4bce34a
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': int(os.environ.get('DJANGO_Q_WORKERS', 4)),
'workers': os.getenv('DJANGO_Q_WORKERS', '4'),
'recycle': 500,
'timeout': 300,
'retry': 600,
Expand Down

0 comments on commit 4bce34a

Please sign in to comment.