mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user