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

fix-issue-timedelta #5987

Closed
wants to merge 6 commits into from
Closed

fix-issue-timedelta #5987

wants to merge 6 commits into from

Conversation

FloLey
Copy link
Contributor

@FloLey FloLey commented May 16, 2023

Description

There seems to be an issue with the _set_timeout function of Tornado. If timeout is a timedelta with value zero it evaluates to false here which causes issues

Self Check:

Strike through any lines that are not applicable (~~line~~) then check the box

  • Attached issue to pull request
  • Changelog entry
  • Type annotations are present
  • Code is clear and sufficiently documented
  • No (preventable) type errors (check using make mypy or make mypy-diff)
  • Sufficient test cases (reproduces the bug/tests the requested feature)
  • Correct, in line with design
  • End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
  • If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

@FloLey FloLey changed the title update fix-issue-timedelta May 16, 2023
@FloLey FloLey requested review from wouterdb and arnaudsjs May 16, 2023 09:24
src/inmanta/server/protocol.py Outdated Show resolved Hide resolved
@FloLey FloLey requested a review from arnaudsjs May 16, 2023 12:04
@FloLey FloLey added the merge-tool-ready This ticket is ready to be merged in label May 16, 2023
@inmantaci
Copy link
Contributor

Processing this pull request

inmantaci pushed a commit that referenced this pull request May 16, 2023
# Description

There seems to be an issue with the _set_timeout function of Tornado. If timeout is a timedelta with value zero it evaluates to false [here](https://github.com/tornadoweb/tornado/blob/master/tornado/queues.py#L62) which causes issues

# Self Check:

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [ ] Attached issue to pull request
- [x] Changelog entry
- [ ] Type annotations are present
- [ ] Code is clear and sufficiently documented
- [ ] No (preventable) type errors (check using make mypy or make mypy-diff)
- [ ] Sufficient test cases (reproduces the bug/tests the requested feature)
- [ ] Correct, in line with design
- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
@inmantaci
Copy link
Contributor

Merged into branches master in f65386c

inmantaci pushed a commit that referenced this pull request May 16, 2023
# Description

There seems to be an issue with the _set_timeout function of Tornado. If timeout is a timedelta with value zero it evaluates to false [here](https://github.com/tornadoweb/tornado/blob/master/tornado/queues.py#L62) which causes issues

# Self Check:

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [ ] Attached issue to pull request
- [x] Changelog entry
- [ ] Type annotations are present
- [ ] Code is clear and sufficiently documented
- [ ] No (preventable) type errors (check using make mypy or make mypy-diff)
- [ ] Sufficient test cases (reproduces the bug/tests the requested feature)
- [ ] Correct, in line with design
- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
@inmantaci inmantaci closed this May 16, 2023
@inmantaci inmantaci deleted the fix-issue-timedelta branch May 16, 2023 13:17
@inmantaci
Copy link
Contributor

Processing #5992.

inmantaci pushed a commit that referenced this pull request May 16, 2023
Pull request opened by the merge tool on behalf of #5987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-tool-ready This ticket is ready to be merged in
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants