Merged in fix/redis-shutdown-graceful (pull request #1969)

Fix/redis shutdown graceful

* fix: shutdown redis gracefully when container restarts
* throttle scans to redis to avoid overwhelming it

Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2025-05-06 11:38:41 +00:00
parent 2acc17219a
commit 0506d5847e
4 changed files with 32 additions and 1 deletions
+4
View File
@@ -11,6 +11,10 @@ import serverTiming from "@elysiajs/server-timing";
import { AuthenticationError } from "@/errors/AuthenticationError";
import { ModelValidationError } from "@/errors/ModelValidationError";
import { setupShutdown } from "@/shutdown";
setupShutdown();
const app = new Elysia()
.use(serverTiming())
.error("AUTHENTICATION_ERROR", AuthenticationError)