fix: 🚑 Sleep process instead of exiting it on error

Avoids Docker's auto-restart policy from causing infinite reboots and hanging the system
This commit is contained in:
Jesse Wierzbinski 2024-06-13 23:44:46 -10:00
parent 7ba0eb82f1
commit c764cc044d
No known key found for this signature in database
4 changed files with 24 additions and 7 deletions

View file

@ -44,7 +44,8 @@ export const connectMeili = async (logger: MultiLogManager | LogManager) => {
"Meilisearch",
"Error while connecting to Meilisearch",
);
process.exit();
// Hang until Ctrl+C is pressed
await Bun.sleep(Number.POSITIVE_INFINITY);
}
};