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

Celery-v4.2.1, branch master: wrong doc info for tasks_ack_late default value #5259

Closed
1 of 2 tasks
meysam81 opened this issue Dec 28, 2018 · 6 comments
Closed
1 of 2 tasks

Comments

@meysam81
Copy link
Contributor

meysam81 commented Dec 28, 2018

Checklist

  • I have included the output of celery -A proj report in the issue.
    (if you are not able to do this, then at least specify the Celery
    version affected).
  • I have verified that the issue exists against the master branch of Celery.

Steps to reproduce

I have checked my app, the task_acks_late setting is set to False by default, but you are saying in your docs that it's set to True by default.

Expected behavior

I think you should edit the doc for this part

Actual behavior

The actual behavior is that the default global task_acks_late setting is set to False by default

@007
Copy link

007 commented Jan 14, 2019

acks_late=Option(False, type='bool'),
says it's False by default, and everywhere else it's initialized explicitly says None so this should override.

@huangsam
Copy link
Contributor

Seems like the current docs in master branch says that this is disabled by default:

Screen Shot 2019-03-13 at 8 29 40 AM

@thedrow is there still a bug here?

@huangsam
Copy link
Contributor

celery/celery/app/defaults.py

Line 246 in 9b39fc4

acks_late=Option(False, type='bool'),
says it's False by default, and everywhere else it's initialized explicitly says None so this should override.

@007 that is an interesting observation you make. I'm wondering why some values were configured as None instead of the same values as the global defaults in celery/celery/app/defaults.py. @thedrow should the other files initialize the acks_late value as False instead of None?

@thedrow
Copy link
Member

thedrow commented Mar 13, 2019

They are set to None since if they are None we take the values from the configuration.

@huangsam
Copy link
Contributor

Just checking back here again, but is this issue still valid or can it be closed?

@thedrow
Copy link
Member

thedrow commented Mar 24, 2019

Master branch looks like it's already updated.

@thedrow thedrow closed this as completed Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants