I’ve got a LocalCluster working well except for teardown. I’ve tried a number of functions, including:
- client.close()
- client.shutdown()
- client.scheduler.shutdown()
- client.retire_workers()
- doing nothing
But I’ve found no combination that avoids a variety of errors on exit. All the examples I’ve found are interactive ipynb files that don’t ever terminate the cluster. So basic question:
What is the best practice for cleanly terminating a client / cluster?
Thanks.