rewrite threading code in jobwatchd

now it distributes the tasks properly among all threads,
and it can be used as a standalone program.
there are some minor performance issues which will be fixed shortly.
This commit is contained in:
rofl0r
2019-01-05 06:35:41 +00:00
parent ff5d121d5f
commit 9ac3ed45d6
3 changed files with 188 additions and 105 deletions

View File

@@ -26,3 +26,7 @@ def load():
args = aparse.parse_args()
watchd_threads = args.watchd_threads
global servers
with open('servers.txt', 'r') as handle:
servers = handle.read().split('\n')