Skip to content

Ignore done tasks#3500

Merged
asvetlov merged 2 commits intomasterfrom
ignore-cancelled-tasks
Jan 8, 2019
Merged

Ignore done tasks#3500
asvetlov merged 2 commits intomasterfrom
ignore-cancelled-tasks

Conversation

@asvetlov
Copy link
Copy Markdown
Member

@asvetlov asvetlov commented Jan 8, 2019

Fixes #3497

@codecov-io
Copy link
Copy Markdown

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
Copy Markdown

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