properly clean submitted job list after db write
This commit is contained in:
@@ -158,6 +158,7 @@ class Proxywatchd():
|
|||||||
for job in self.collected:
|
for job in self.collected:
|
||||||
self.mysqlite.execute(query, (job.failcount, job.nextcheck, 1, "unknown", job.proto, job.duration, job.proxy))
|
self.mysqlite.execute(query, (job.failcount, job.nextcheck, 1, "unknown", job.proto, job.duration, job.proxy))
|
||||||
self.mysqlite.commit()
|
self.mysqlite.commit()
|
||||||
|
self.collected = []
|
||||||
|
|
||||||
def run_background(self):
|
def run_background(self):
|
||||||
t = threading.Thread(target=self.run)
|
t = threading.Thread(target=self.run)
|
||||||
|
|||||||
Reference in New Issue
Block a user