Cancel ProcessPoolFuture when aborting job

Fixes the occasional timeout error in jobs that follow the
`test_abort_fetch_job` test.
This commit is contained in:
mvdbeek
2024-05-02 17:31:26 +02:00
parent acec4f6de3
commit 1bea8a71f7
+1
View File
@@ -288,6 +288,7 @@ def abort_when_job_stops(function: Callable, session: galaxy_scoped_session, job
return future.result(timeout=1)
except TimeoutError:
if is_aborted(session, job_id):
future.cancel()
return