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

Name of expire variables in configuration #53

Open
cfingerh opened this issue Jan 19, 2018 · 2 comments
Open

Name of expire variables in configuration #53

cfingerh opened this issue Jan 19, 2018 · 2 comments

Comments

@cfingerh
Copy link

In the docs it is stated that the name of the variables for the timedelta of expiration is

  • monitor_task_pending_expires
  • monitor_task_error_expires
  • monitor_task_success_expires

but in the code it appears to me that the names are different

  • monitors_expire_success
  • monitors_expire_error
  • monitors_expire_pending
@DEKHTIARJonathan
Copy link

DEKHTIARJonathan commented Apr 5, 2018

I confirm that the correct setting is the following: (have a look to #29)

app.conf.monitors_expire_success    = timedelta(hours=1)
app.conf.monitors_expire_error      = timedelta(hours=1)
app.conf.monitors_expire_pending    = timedelta(hours=1)

@yo-ga
Copy link

yo-ga commented Dec 12, 2018

Well, I have a different idea about that.
If you need to manage these settings in Django settings, you should add the celery prefix and turn them upper.

CELERY_MONITORS_EXPIRE_SUCCESS = timedelta(hours=1)

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

No branches or pull requests

3 participants