beginnerhelp wanted
仓库指标
- 星标
- (17,623 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
When signals are added, we should run some sort of a cleanup like this on shutdown to make sure any custom signals are run. This also includes a suggestion that we identify them with a name: signal-XXXXX.
async def cleanup(app, _):
for task in asyncio.all_tasks():
if task.get_name().startswith("signal"):
await task