datastax/python-driver — pull request #52 by mpenick (2013-11-13 15:19:08+00:00)
Title: Added an fake entry to the scheduled queue to prevent thread leak

```cluster.Cluster``` is leaking threads even with a proper call to ```cluster.shutdown()```.

The ```cluster._Scheduler``` class waits infinitely for a task to be push into the priority queue. This prevents the scheduler thread from ever dying, even when the shutdown method is called. Adding an entry to the queue kicks the scheduler out of this wait so that it can see the ```is_shutdown``` flag.