Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_tasks is not shrinking tasks when threshold is passed #1380

Open
henkesde opened this issue Jun 12, 2024 · 0 comments
Open

max_tasks is not shrinking tasks when threshold is passed #1380

henkesde opened this issue Jun 12, 2024 · 0 comments
Labels

Comments

@henkesde
Copy link

Describe the bug
I start flower using the parameter --max_tasks, but the tasks are not being shrinked when the threshold is passed. Starting the server like this:

/usr/local/bin/celery --app celery_flower --broker="pyamqp://user:***@hostname:5671//" flower --broker_api="https://user:***@hostname:15671/api/" --persistent --state_save_interval=5000 --max_tasks=20 --db="/home/flower/data/flower.db"

This is my celery_flower.py:

from celery import Celery

app = Celery('celery_flower')
# SSL Configuration for Untrusted Certificates
app.conf.BROKER_USE_SSL = {
    'cert_reqs': ssl.CERT_NONE  # This will cause Celery to ignore verifying the certificate
}

# And some more custom code. But nothing on the Celery object

Due to other dependencies we can't solve right now, we're on flower v1.2.0 right now. Am I missing something here in order to make this --max_tasks working correctly? All other parameters like for example the --state_save_interval seem to work correctly.

@henkesde henkesde added the bug label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant