Browse Source

auto commit

master
jfinn 2 years ago
parent
commit
ae08e9fffe
1 changed files with 13 additions and 7 deletions
  1. 13
    7
      wsps/tasks_loop.py

+ 13
- 7
wsps/tasks_loop.py View File

417
 glob_cl =  globCL()
417
 glob_cl =  globCL()
418
 
418
 
419
 
419
 
420
+
421
+# we are not flushing databases if 
422
+def atexit_fn():
423
+	# print("atexit_fn!\n\n")
424
+	rconn = glob_cl.rconn
425
+	# rconn.flushall()
426
+	rconn.flushdb()
427
+	print("",end="",flush=True)
428
+
429
+
420
 if hot_reload_build:
430
 if hot_reload_build:
421
 	glob_cl.rman.rld_files()
431
 	glob_cl.rman.rld_files()
432
+	atexit.register(atexit_fn)
422
 else:
433
 else:
423
 	import wsps.hot_reload_temp_staging
434
 	import wsps.hot_reload_temp_staging
424
 	wsps.hot_reload_temp_staging.init_class_edits(Mixins)
435
 	wsps.hot_reload_temp_staging.init_class_edits(Mixins)
427
 # glob_cl.rman.rld_files()
438
 # glob_cl.rman.rld_files()
428
 
439
 
429
 
440
 
430
-def atexit_fn():
431
-	print("atexit_fn!\n\n")
432
-	rconn = glob_cl.rconn
433
-	# rconn.flushall()
434
-	rconn.flushdb()
435
-	print("",end="",flush=True)
436
-atexit.register(atexit_fn)
441
+
442
+
437
 
443
 

Loading…
Cancel
Save