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

add deadline option to any function that contains getprotocol or depe… #131

Merged
merged 1 commit into from
Sep 25, 2015

Conversation

psi29a
Copy link
Contributor

@psi29a psi29a commented Sep 21, 2015

…nds on function that does

This also includes NotMasterError

@psi29a psi29a added this to the 15.2 - "Concerning Writes" milestone Sep 21, 2015
while True:
try:
yield conn.db.coll.find_one(timeout=2)
raise Exception("TimeoutExceeded not raised!")
Copy link
Contributor

Choose a reason for hiding this comment

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

it's more clean to use self.fail() here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, thanks!

@IlyaSkriblovsky
Copy link
Contributor

Is this intended that count, group, filemd5 and some others have only deadline argument, but not timeout?

@psi29a
Copy link
Contributor Author

psi29a commented Sep 23, 2015

I'm working through them, thanks for noticing!

…nds on function that does

add the error class

update docs

impliment timeout in addition to deadline, updated docs

typo fixes

remove unnecessary kwargs

use a decorator

remove deadline/timeout from params, do kwarg magic in timeout decorator, update our tests

tidy up timeout wrapper

faster tests and coverage, fix imports

remove unnused code, we will get back to that in next PR
@psi29a
Copy link
Contributor Author

psi29a commented Sep 25, 2015

Did a rebase squash in prep for merge.

psi29a added a commit that referenced this pull request Sep 25, 2015
add deadline option to any function that contains getprotocol or depe…
@psi29a psi29a merged commit c4f1ca3 into twisted:master Sep 25, 2015
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