Environment
- 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()
0 Comments