-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Pub/Sub doc: missing definition for max_lease_duration
in FlowControl
#7043
Comments
@anguillanneuf |
Edit: In Python 3.5+ the docstrings of namedtuples and their members can be updated: from collections import namedtuple
FlowControl = namedtuple("FlowControl", ["foo", "bar"])
FlowControl.__doc__ = "These are the flow control settings."
FlowControl.foo.__doc__ = "The foo setting does X"
FlowControl.bar.__doc__ = "The bar setting does Y" With the modifications, invoking
No more default "Alias for field number X" descriptions of the members that end up in the linked docs. 🎉 In the code, we could optionally modify the namedtuples' docstrings if Python version >= 3.5, and generate the docs using one of the officially supported Python versions (which are, in fact, Python 3.5+). Would that solve the issue, or am I missing something? |
@plamut, It sounds like your solution would work. Please do it. |
@sduskis The If Luke (the current assignee) is too occupied with other work, I can help, although I would first have to familiarize myself with the |
oh. Thanks for the info @plamut. That sounds like a time intensive change, so I don't think that the effort is advisable in the near term. @anguillanneuf, I'm ok keeping this open, but this will be a very low priority. |
The ref doc for
max_lease_duration
does not describe what it is or how it is used, especially about how it interacts with ack deadlines.Given that this is an important config setting for long-running tasks, we may want to provide more documentation here by showing its default value (is it 2 hours), and explaining whether max lease duration restrains ack deadline modification or ack deadline modification overwrites max lease duration when one configures both flow control settings and ack deadlines.
The text was updated successfully, but these errors were encountered: