This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients Evgeny Nizhibitsky, asvetlov, yselivanov
Date 2019-10-10.09:54:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570701249.18.0.705081241042.issue38430@roundup.psfhosted.org>
In-reply-to
Content
You MUST await a future returned from `loop.run_in_executor()` to avoid the leak.

Yuri, what should we do with the issue? I see the second similar report in the last half of the year.
Sure, we can add weakrefs somewhere in futures._chain_future() but I pretty sure that the proper fix is just enforcing `await` here, e.g.

1. rename existing run_in_executor() into a private _run_in_executor() function.

2. write async trampoline:
async def run_in_executor(self, executor, func, *args):
    return await self._run_in_executor(executor, func, *args)
History
Date User Action Args
2019-10-10 09:54:09asvetlovsetrecipients: + asvetlov, yselivanov, Evgeny Nizhibitsky
2019-10-10 09:54:09asvetlovsetmessageid: <1570701249.18.0.705081241042.issue38430@roundup.psfhosted.org>
2019-10-10 09:54:09asvetlovlinkissue38430 messages
2019-10-10 09:54:09asvetlovcreate