fixes mypy error:
volumes/fs/async_job.py: note: In member "run" of class "JobThread":
volumes/fs/async_job.py:43: error: "Thread" has no attribute "should_cancel"
Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit
6907c440e1350e4088c0562bffcc08439633298f)
def run(self):
retries = 0
thread_id = threading.currentThread()
+ assert isinstance(thread_id, JobThread)
thread_name = thread_id.getName()
while retries < JobThread.MAX_RETRIES_ON_EXCEPTION: