summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2022-12-14 23:46:14 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2022-12-14 23:46:14 +0000
commitcb50528e2d6bc7a215a8b55b46a9859aae7f4f83 (patch)
tree3d8b30eba9f54ed2361acb42e9f7f6349fea940f /databaseReset.py
parent6dd8e5a75cbea8399033d72c19c2b6330dfbeb73 (diff)
downloadtroggle-cb50528e2d6bc7a215a8b55b46a9859aae7f4f83.tar.gz
troggle-cb50528e2d6bc7a215a8b55b46a9859aae7f4f83.tar.bz2
troggle-cb50528e2d6bc7a215a8b55b46a9859aae7f4f83.zip
exptl parse UK Caving blog
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/databaseReset.py b/databaseReset.py
index db7a781..2d0af58 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -238,15 +238,16 @@ class JobQueue():
for runfunction in self.queue:
start = time.time()
memstart = get_process_memory()
+ jobname, jobparser = runfunction
#--------------------
- runfunction[1]() # invokes function passed in the second item in the tuple
+ jobparser() # invokes function passed in the second item in the tuple
#--------------------
memend = get_process_memory()
duration = time.time()-start
#print(" - MEMORY start:{:.3f} MB end:{:.3f} MB change={:.3f} MB".format(memstart,memend, ))
- print("\n*- Ended \"", runfunction[0], f"\" {duration:.1f} seconds + {memend - memstart:.3f} MB ({memend:.3f} MB)")
- self.results[runfunction[0]].pop() # the null item
- self.results[runfunction[0]].append(duration)
+ print("\n*- Ended \"", jobname, f"\" {duration:.1f} seconds + {memend - memstart:.3f} MB ({memend:.3f} MB)")
+ self.results[jobname].pop() # the null item
+ self.results[jobname].append(duration)
jobend = time.time()