automl / HPOBench

Collection of hyperparameter optimization benchmark problems
Apache License 2.0
139 stars 36 forks source link

Cleaning up old containers through the API #175

Closed Game4Move78 closed 1 year ago

Game4Move78 commented 1 year ago

Is there any way to properly dispose of containers when doing multiple runs? At the moment I just call del benchmark and instantiate a new one with a different seed, but it leaves a lot of dangling containers that have to be manually cleaned up with singularity instance stop -a.

KEggensperger commented 1 year ago

Hi there. I believe calling benchmark._shutdown() should stop the instance immediately (see https://github.com/automl/HPOBench/blob/master/hpobench/container/client_abstract_benchmark.py#L481)

Game4Move78 commented 1 year ago

Thank you. This appears to solve my problem.