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

Ignore done tasks #3500

Merged
merged 2 commits into from
Jan 8, 2019
Merged

Ignore done tasks #3500

merged 2 commits into from
Jan 8, 2019

Conversation

asvetlov
Copy link
Member

@asvetlov asvetlov commented Jan 8, 2019

Fixes #3497

@codecov-io
Copy link

codecov-io commented Jan 8, 2019

Codecov Report

Merging #3500 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3500      +/-   ##
==========================================
- Coverage   97.93%   97.92%   -0.02%     
==========================================
  Files          44       44              
  Lines        8560     8562       +2     
  Branches     1380     1381       +1     
==========================================
+ Hits         8383     8384       +1     
  Misses         72       72              
- Partials      105      106       +1
Impacted Files Coverage Δ
aiohttp/helpers.py 96.74% <100%> (+0.01%) ⬆️
aiohttp/web.py 99.1% <0%> (-0.9%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b42a23b...e067d9e. Read the comment docs.

@asvetlov asvetlov merged commit 4e99e81 into master Jan 8, 2019
@asvetlov asvetlov deleted the ignore-cancelled-tasks branch January 8, 2019 07:21
asvetlov added a commit that referenced this pull request Jan 8, 2019
* Fix #3497: Ignore done tasks when cancels pending activities on web.run_app finalization.
(cherry picked from commit 4e99e81)

Co-authored-by: Andrew Svetlov <[email protected]>
asvetlov added a commit that referenced this pull request Jan 8, 2019
* Fix #3497: Ignore done tasks when cancels pending activities on web.run_app finalization.
(cherry picked from commit 4e99e81)

Co-authored-by: Andrew Svetlov <[email protected]>
cognifloyd added a commit to cognifloyd/connexion that referenced this pull request May 22, 2019
Somewhere between 3.5.1 and 3.5.2, the aiohttp reimport started
succeeding (in connexion.connexion.cli.run()). It's not clear which
change caused the issue, but it's probably one of:

- aio-libs/aiohttp#3469 (Remove wildcard imports)
- aio-libs/aiohttp#3464 (Don't suppress gunicorn cleanup errors)
- aio-libs/aiohttp#3471 (Refactor workers)
- aio-libs/aiohttp#3500 (Ignore done tasks)

In any case, setting sys.modules['aiohttp'] = None should prevent
reimporting it. See: https://stackoverflow.com/a/1350574

I successfully tested locally on py37 with aiohttp 3.5.1 and 3.5.2.
hjacobs pushed a commit to spec-first/connexion that referenced this pull request Oct 15, 2019
* Revert "set max aiohttp version to 3.5.1 (until build is fixed) (#844)"

This reverts commit b2a4287.

* Fix test_run_with_aiohttp_not_installed

Somewhere between 3.5.1 and 3.5.2, the aiohttp reimport started
succeeding (in connexion.connexion.cli.run()). It's not clear which
change caused the issue, but it's probably one of:

- aio-libs/aiohttp#3469 (Remove wildcard imports)
- aio-libs/aiohttp#3464 (Don't suppress gunicorn cleanup errors)
- aio-libs/aiohttp#3471 (Refactor workers)
- aio-libs/aiohttp#3500 (Ignore done tasks)

In any case, setting sys.modules['aiohttp'] = None should prevent
reimporting it. See: https://stackoverflow.com/a/1350574

I successfully tested locally on py37 with aiohttp 3.5.1 and 3.5.2.
@lock
Copy link

lock bot commented Jan 8, 2020

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Jan 8, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 8, 2020
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bot:chronographer:provided There is a change note present in this PR bug outdated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

web._cancel_all_tasks causes spurious errors on Python <3.7
3 participants