105 Commits

Author SHA1 Message Date
fb899c1ebe log when can't get lock 2015-09-09 10:03:41 -04:00
020e40ab7f python 2.6 compat 2015-09-09 10:03:41 -04:00
d11ad883bb make sure lock name matches action 2015-09-09 10:03:41 -04:00
aafca03ec7 queue locks are no longer necessary 2015-09-09 10:03:41 -04:00
964896d6b0 return db object to keep it from going out of scope 2015-09-09 10:03:41 -04:00
98b50b60ba thread locking in python 2015-09-09 10:03:41 -04:00
408b8dd855 Fix to avoid triggering this bug: http://sourceforge.net/p/mysql-python/bugs/325/
We remove miliseconds from datetime.
2015-08-29 02:41:47 +02:00
588ea4083e add license text 2015-08-25 11:35:27 -04:00
6f0969c151 typo 2015-08-25 11:35:25 -04:00
a47ae33cfd check for schema_update lock when poller-service runs 2015-08-25 11:35:23 -04:00
617e695b20 better logging error checking 2015-08-25 11:35:23 -04:00
7798626017 fix logging options 2015-08-25 11:35:23 -04:00
403d4c5364 decode proc 2015-08-25 11:35:23 -04:00
85aa9ccdb8 Revert "make logging python3 compatible"
This reverts commit 74531c6e69c31c252a48d2bab90bc98e4f566111.
2015-08-25 11:35:23 -04:00
0f34042b84 Revert "upper case warning"
This reverts commit c87d626105ad80d7856e2c15f98219c43ebe0c2e.
2015-08-25 11:35:22 -04:00
9022c16836 upper case warning 2015-08-25 11:35:22 -04:00
73ada34f30 make logging python3 compatible 2015-08-25 11:35:22 -04:00
71c1771d84 zero length field in format 2015-08-25 11:35:22 -04:00
c9a56e248d index and limit 2015-08-25 11:35:22 -04:00
bb697a35bd attribution 2015-08-25 11:35:22 -04:00
b73b49bfcb remove unnecessary exit conditions 2015-08-25 11:35:21 -04:00
9931d9dc44 don't try to discover down devices 2015-08-25 11:35:21 -04:00
21e9dac646 exit on mysql error 2015-08-25 11:35:21 -04:00
3ff7a48089 catch sql errors 2015-08-25 11:35:21 -04:00
9f1c2232f0 update every minute 2015-08-25 11:35:21 -04:00
4d832067a9 change to 2 minute updates 2015-08-25 11:35:20 -04:00
c3b6fee0eb bad sql 2015-08-25 11:35:20 -04:00
5672afd0a8 test for null last_attempted 2015-08-25 11:35:20 -04:00
e68bebbc62 bad index 2015-08-25 11:35:20 -04:00
6c5f71bbb5 remove queue locks on empty query 2015-08-25 11:35:20 -04:00
4a66720969 release lock for 1 device 2015-08-25 11:35:20 -04:00
c35a1ea750 don't loop too fast 2015-08-25 11:35:19 -04:00
d23bed0af7 don't check dont-retry' 2015-08-25 11:35:19 -04:00
f12725fc81 store last attempted in sql for simpler down_retry 2015-08-25 11:35:19 -04:00
b9c3b3cec8 sql stuff 2015-08-25 11:35:18 -04:00
4529ba2e7d fix stupid query 2015-08-25 11:35:18 -04:00
c65a160c18 log progress to db every 5 minutes 2015-08-25 11:35:18 -04:00
67b8f9f473 pep8 2015-08-25 11:35:17 -04:00
b0c02a167e add license to docstring 2015-08-25 11:35:17 -04:00
9ae0bc3f83 documentation written 2015-08-25 11:35:16 -04:00
18d8914548 discover integration working 2015-08-25 11:35:16 -04:00
f293e3d967 add discovery support to service 2015-08-25 11:35:16 -04:00
e30aea0168 get all config from config.php 2015-08-25 11:35:15 -04:00
f7993a204c log level from config 2015-08-25 11:35:15 -04:00
2b3d70e928 add proper logging 2015-08-25 11:35:15 -04:00
e9ffc7a374 thread numbers are meaningless 2015-08-25 11:35:15 -04:00
4736544e7e fix bug on retrying failed devices 2015-08-25 11:35:15 -04:00
1dcaa51011 more efficient sql queries, working well all night 2015-08-25 11:35:14 -04:00
99cf049645 cleaned up 2015-08-25 11:35:14 -04:00
4d3b7a3c0f working 2015-08-25 11:35:14 -04:00