ソースを参照

auto commit

master
jfinn 2年前
コミット
ae08e9fffe
1個のファイルの変更13行の追加7行の削除
  1. 13
    7
      wsps/tasks_loop.py

+ 13
- 7
wsps/tasks_loop.py ファイルの表示

@@ -417,8 +417,19 @@ def fn1(*a,**kw):
417 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 430
 if hot_reload_build:
421 431
 	glob_cl.rman.rld_files()
432
+	atexit.register(atexit_fn)
422 433
 else:
423 434
 	import wsps.hot_reload_temp_staging
424 435
 	wsps.hot_reload_temp_staging.init_class_edits(Mixins)
@@ -427,11 +438,6 @@ else:
427 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
 

読み込み中…
キャンセル
保存