File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import multiprocessing
22
33worker_class = "uvicorn.workers.UvicornWorker"
4- workers = min ( 4 , multiprocessing .cpu_count ())
4+ workers = max ( 1 , multiprocessing .cpu_count ()* 2 )
55bind = "0.0.0.0:8000"
66timeout = 90
77keepalive = 3600
8- preload_app = True
8+ preload_app = True
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ services:
77 volumes :
88 - ./data:/data:rw
99 tmpfs :
10+ - /tmp
1011 - /var/run
1112 - /service/static/tmp
1213 ports :
Original file line number Diff line number Diff line change @@ -467,8 +467,15 @@ SELECT cron.schedule(
467467 ' cleanup_every_minute' ,
468468 ' */5 * * * *' ,
469469 $$
470- REFRESH MATERIALIZED VIEW CONCURRENTLY best_replay_per_user;
471470 DELETE FROM " user"
472471 WHERE created_at < now() - INTERVAL ' 15 minutes' ;
473472 $$
474473);
474+
475+ SELECT cron .schedule (
476+ ' cleanup_every_minute' ,
477+ ' */1 * * * *' ,
478+ $$
479+ REFRESH MATERIALIZED VIEW CONCURRENTLY best_replay_per_user;
480+ $$
481+ );
You can’t perform that action at this time.
0 commit comments