Explorar el Código

chore(axonhub): run GC at 02:00 Asia/Shanghai

Xiaogang Liao hace 2 semanas
padre
commit
cd2befc640
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      axonhub/config.yml

+ 7 - 1
axonhub/config.yml

@@ -35,4 +35,10 @@ server:
 db:
   dialect: "postgres"
   dsn: "postgres://axonhub:axonhub_password@postgres:5432/axonhub?sslmode=disable"
-  disable_auto_migration: false
+  disable_auto_migration: false
+# Garbage collection schedule.
+# The GC scheduler runs in UTC, so 18:00 UTC = 02:00 Asia/Shanghai (UTC+8).
+gc:
+  cron: "0 18 * * *"
+  vacuum_enabled: true
+  vacuum_full: false