Skip to content

Conversation

@naglepuff
Copy link
Collaborator

@naglepuff naglepuff commented Feb 10, 2026

Due to high memory usage of spectrogram generation compared to the allowance on Heroku, limit the number of concurrent tasks that can be run to 1.

@naglepuff naglepuff requested a review from brianhelba February 10, 2026 16:30
@cloudflare-workers-and-pages
Copy link

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1456ec3
Status: ✅  Deploy successful!
Preview URL: https://207aff5d.bats-ai.pages.dev
Branch Preview URL: https://change-deployed-worker-concu.bats-ai.pages.dev

View logs

Copy link
Member

@brianhelba brianhelba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, there's a CELERY_WORKER_CONCURRENCY Django setting. We could override that in settings/production.py to hardcode a value there or even make the setting dependent on a new DJANGO_CELERY_WORKER_CONCURRENCY environment variable (which might make it easier to tune and experiment with).

However, since the memory issue is tightly associated with Heroku's dynos, I think it's just as reasonable to put the change here in the Procfile.

@naglepuff naglepuff merged commit 5f99a61 into main Feb 10, 2026
7 checks passed
@naglepuff naglepuff deleted the change-deployed-worker-concurrency branch February 10, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants