flux-framework / flux-core

core services for the Flux resource management framework
GNU Lesser General Public License v3.0
168 stars 50 forks source link

python: call shutdown() on executor in job validator #6435

Closed grondo closed 2 weeks ago

grondo commented 2 weeks ago

Problem: The concurrent.futures ThreadPoolExecutor is not explicitly shut down when exiting flux-job-validator. This MAY be causing the program to occasionally hang at exit.

Add a stop() method to the JobValidator class which calls the shutdown() method of the executor. Call validator.stop() from flux-job-validator(1) before exit.

Fixes #6434

grondo commented 2 weeks ago

Thanks I've set MWP