Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						5e3d968ee9
					 | 
					
						
						
							
							use threading locks instead of a boolean variable and busy loop
						
						
						
						
						
						
					 | 
					
						2015-09-14 13:38:46 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						12f2cdfcc8
					 | 
					
						
						
							
							connect on init, check for in_use on connect
						
						
						
						
						
						
					 | 
					
						2015-09-14 09:43:34 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						0b4645e3ea
					 | 
					
						
						
							
							Revert "catch cursor close"
						
						
						
						
						
						
						
						This reverts commit f5d6ad62b3. 
						
						
					 | 
					
						2015-09-14 09:41:03 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						f5d6ad62b3
					 | 
					
						
						
							
							catch cursor close
						
						
						
						
						
						
					 | 
					
						2015-09-14 09:39:51 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						b68df56b14
					 | 
					
						
						
							
							use global db connection if configured
						
						
						
						
						
						
					 | 
					
						2015-09-14 09:35:55 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						a89018ab91
					 | 
					
						
						
							
							add blocking to db query
						
						
						
						
						
						
					 | 
					
						2015-09-14 09:34:13 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						cb3189e944
					 | 
					
						
						
							
							always try to close the connection before reconnecting.
						
						
						
						
						
						
					 | 
					
						2015-09-14 09:00:55 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						728b92f0ff
					 | 
					
						
						
							
							first attempt at lessening mysql load
						
						
						
						
						
						
					 | 
					
						2015-09-14 08:48:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						a761a4be77
					 | 
					
						
						
							
							use thread name as id
						
						
						
						
						
						
					 | 
					
						2015-09-09 17:01:44 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						39ec135ed3
					 | 
					
						
						
							
							Revert "debug stats about threads"
						
						
						
						
						
						
						
						This reverts commit 9b2c9c2fd3. 
						
						
					 | 
					
						2015-09-09 17:00:36 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						a74a5c8d81
					 | 
					
						
						
							
							Revert "prepopulate last completed dict"
						
						
						
						
						
						
						
						This reverts commit 310711b4e4. 
						
						
					 | 
					
						2015-09-09 17:00:26 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						310711b4e4
					 | 
					
						
						
							
							prepopulate last completed dict
						
						
						
						
						
						
					 | 
					
						2015-09-09 16:55:36 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						9b2c9c2fd3
					 | 
					
						
						
							
							debug stats about threads
						
						
						
						
						
						
					 | 
					
						2015-09-09 16:53:11 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						a0288763d9
					 | 
					
						
						
							
							use native thread id
						
						
						
						
						
						
					 | 
					
						2015-09-09 16:46:12 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						01bef1ff01
					 | 
					
						
						
							
							smarter sleeping to try and lighten cpu load
						
						
						
						
						
						
					 | 
					
						2015-09-09 15:23:04 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						06a809d96d
					 | 
					
						
						
							
							unnecessary commas
						
						
						
						
						
						
					 | 
					
						2015-09-09 15:09:19 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						ae8d29c4b6
					 | 
					
						
						
							
							make threads daemon threads
						
						
						
						
						
						
					 | 
					
						2015-09-09 15:07:55 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						d76e9e7889
					 | 
					
						
						
							
							release queue locks
						
						
						
						
						
						
					 | 
					
						2015-09-09 15:05:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						8de136f50c
					 | 
					
						
						
							
							warn on empty queries
						
						
						
						
						
						
					 | 
					
						2015-09-09 15:01:27 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						c914ba75a1
					 | 
					
						
						
							
							identify thread numbers
						
						
						
						
						
						
					 | 
					
						2015-09-09 14:58:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						969a22ffa9
					 | 
					
						
						
							
							move everything into the thread
						
						
						
						
						
						
					 | 
					
						2015-09-09 14:51:17 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						b2f7eba5c7
					 | 
					
						
						
							
							always close cursor
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:55 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						7f69855f41
					 | 
					
						
						
							
							all cursor handling in db class
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:55 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						004111574a
					 | 
					
						
						
							
							close cursor after query
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:53 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						201f516a76
					 | 
					
						
						
							
							better log messages
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:40 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						55768cf4c9
					 | 
					
						
						
							
							catch error during connectino and retry
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						9610dac130
					 | 
					
						
						
							
							mysql ping with reconnect
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						b08300e425
					 | 
					
						
						
							
							make more resiliant to MySQL disconnects
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						ac63a8937a
					 | 
					
						
						
							
							MySQL doesn't support specifying microsecond precision, and MariaDB defaults to zero, so it can be removed to be compatible with both.
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						32adff03f1
					 | 
					
						
						
							
							only log worker threads, not main python thread
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						0a00bb6178
					 | 
					
						
						
							
							remove spammy debug log
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						b0e7c9346b
					 | 
					
						
						
							
							always release queue lock
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						5b647d8e70
					 | 
					
						
						
							
							release queue if getting action lock fails
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						840d1e86b9
					 | 
					
						
						
							
							make sure to clear the thread if unsuccessful
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						3b6e0e68e9
					 | 
					
						
						
							
							move thread control to lock threads
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						ca1a6883a8
					 | 
					
						
						
							
							log when can't get lock
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						eddb04aaef
					 | 
					
						
						
							
							python 2.6 compat
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						d377b70e19
					 | 
					
						
						
							
							make sure lock name matches action
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						d60dc000a3
					 | 
					
						
						
							
							queue locks are no longer necessary
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						a63a748a21
					 | 
					
						
						
							
							return db object to keep it from going out of scope
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:39 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						31cb8dddb7
					 | 
					
						
						
							
							thread locking in python
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:04:37 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						49c786f394
					 | 
					
						
						
							
							make more resiliant to MySQL disconnects
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						68a970663f
					 | 
					
						
						
							
							MySQL doesn't support specifying microsecond precision, and MariaDB defaults to zero, so it can be removed to be compatible with both.
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						dde75439d2
					 | 
					
						
						
							
							only log worker threads, not main python thread
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						ca7daae7cd
					 | 
					
						
						
							
							remove spammy debug log
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						65b7d69e9a
					 | 
					
						
						
							
							always release queue lock
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						ecc4a696c7
					 | 
					
						
						
							
							release queue if getting action lock fails
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						b7ecea9323
					 | 
					
						
						
							
							make sure to clear the thread if unsuccessful
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						8d7a937e03
					 | 
					
						
						
							
							move thread control to lock threads
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Clint Armstrong
							
						 
					 | 
					
						
						
							
						
						fb899c1ebe
					 | 
					
						
						
							
							log when can't get lock
						
						
						
						
						
						
					 | 
					
						2015-09-09 10:03:41 -04:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 |