Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid lingering tasks when using background backup tasks (#5518)
When a backup tasks is run in background, but actually has an error early the secondary event task to release the callee is lingering around still, ultimately leading to a "Task was destroyed but it is pending!" asyncio error. Make sure we cancel the event task in case the backup returns early.
- Loading branch information