-
CloudBees Feature Management
Issue
-
Our python software hangs after the rollout python SDK is instantiated. We have a django application that creates a connection to FM using the python SDK. The following snippet initialises FM.
cancel_event = Rox.setup(settings.ROLLOUT_KEY).result()
However, when our code tries to exit, it cannot because it is blocked waiting for threads to exit.
Resolution
This is expected. Rollout SDK usually targets servers (not scripts), and as servers usually die itself and are not stopped, it does not have a proper shutdown.
One approach would be using the following command:
cancel_event.set()
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.