I’ve a quite long running BackgroundTask (moving very large files to AWS-S3) and I’m looking for a way to check if they are still running and also be able to cancel the BackgroundTask.
In my case the
func are not async so it gets somehow passed to
await loop.run_in_executor(None, func, *args).
Is there a way to access the running BackgroundTask object?