en load refiner, track server job state

This commit is contained in:
Vladimir Mandic
2023-09-29 11:01:26 -04:00
parent a2b00f34ec
commit 9cbe496d68
18 changed files with 107 additions and 39 deletions
+2
View File
@@ -147,9 +147,11 @@ class State:
self.skipped = False
self.textinfo = None
self.time_start = time.time()
log.debug(f'State begin: {self.job}')
devices.torch_gc()
def end(self):
log.debug(f'State end: {self.job} time={time.time() - self.time_start:.2f}s')
self.job = ""
self.job_count = 0
self.job_no = 0