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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user