predict.py now puts run_time in progress.json
rodzic
0f31dcbe1f
commit
968628b667
|
@ -26,6 +26,7 @@ log.addHandler(console)
|
||||||
|
|
||||||
progress_f = ''
|
progress_f = ''
|
||||||
progress = {
|
progress = {
|
||||||
|
'run_time': '',
|
||||||
'gfs_percent': 0,
|
'gfs_percent': 0,
|
||||||
'gfs_timeremaining': '',
|
'gfs_timeremaining': '',
|
||||||
'gfs_complete': False,
|
'gfs_complete': False,
|
||||||
|
@ -141,7 +142,10 @@ def main():
|
||||||
global progress
|
global progress
|
||||||
try:
|
try:
|
||||||
progress_f = open(uuid_path+"progress.json", "w")
|
progress_f = open(uuid_path+"progress.json", "w")
|
||||||
update_progress(gfs_percent=0, gfs_timeremaining="Please wait...")
|
update_progress(
|
||||||
|
gfs_percent=0,
|
||||||
|
gfs_timeremaining="Please wait...",
|
||||||
|
run_time=str(int(timelib.time())))
|
||||||
except IOError:
|
except IOError:
|
||||||
log.error('Error opening progress.json file')
|
log.error('Error opening progress.json file')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Ładowanie…
Reference in New Issue