Project

Profile

Help

Issue #9432

closed

RuntimewWarnings "RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited"

Added by ggainey about 3 years ago. Updated about 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Starting pulpcore-workers and doing file-syncs generates warnings like the following:

Sep 22 15:40:08 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17934]: /home/vagrant/devel/pulpcore/pulpcore/plugin/stages/artifact_stages.py:427: RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited
Sep 22 15:40:08 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17934]: acs_exists = sync_to_async(AlternateContentSource.objects.exists)()
Sep 22 15:40:08 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17934]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Sep 22 15:40:08 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17934]: /home/vagrant/devel/pulpcore/pulpcore/plugin/stages/api.py:43: RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited
Sep 22 15:40:08 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17934]: await self.run()
Sep 22 15:40:08 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17934]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Sep 22 15:40:09 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[18001]: /home/vagrant/devel/pulpcore/pulpcore/plugin/stages/artifact_stages.py:427: RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited
Sep 22 15:40:09 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[18001]: acs_exists = sync_to_async(AlternateContentSource.objects.exists)()
Sep 22 15:40:09 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[18001]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Sep 22 15:40:09 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[18001]: /home/vagrant/devel/pulpcore/pulpcore/plugin/stages/api.py:43: RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited
Sep 22 15:40:09 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[18001]: await self.run()
Sep 22 15:40:09 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[18001]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Sep 22 15:40:11 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17943]: /home/vagrant/devel/pulpcore/pulpcore/plugin/stages/artifact_stages.py:427: RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited
Sep 22 15:40:11 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17943]: acs_exists = sync_to_async(AlternateContentSource.objects.exists)()
Sep 22 15:40:11 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17943]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Sep 22 15:40:11 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17943]: /home/vagrant/devel/pulpcore/pulpcore/plugin/stages/api.py:43: RuntimeWarning: coroutine 'SyncToAsync.__call__' was never awaited
Sep 22 15:40:11 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17943]: await self.run()
Sep 22 15:40:11 pulp2-nightly-pulp3-source-centos7.padre-fedora.example.com pulpcore-worker[17943]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Actions #1

Updated by dalley about 3 years ago

  • Status changed from NEW to POST
  • Assignee set to dalley

Added by dalley about 3 years ago

Revision 4ad72a07 | View on GitHub

Fix a coroutine that wasn't awaited

closes: #9432 https://pulp.plan.io/issues/9432

Actions #3

Updated by dalley about 3 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by pulpbot about 3 years ago

  • Sprint/Milestone set to 3.16.0
Actions #5

Updated by pulpbot about 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF