We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e9550 commit c2c9cf6Copy full SHA for c2c9cf6
lib/loader.js
@@ -133,13 +133,12 @@ module.exports = app => {
133
try {
134
await database.authenticate();
135
} catch (e) {
136
- if (e.name !== 'SequelizeConnectionRefusedError') throw e;
137
if (app.model[AUTH_RETRIES] >= 3) throw e;
138
139
- // sleep 2s to retry, max 3 times
+ // sleep 1s to retry, max 3 times
140
database[AUTH_RETRIES] += 1;
141
- app.logger.warn(`Sequelize Error: ${e.message}, sleep 2 seconds to retry...`);
142
- await sleep(2000);
+ app.logger.warn(`Sequelize Error: ${e.message}, sleep 1 seconds to retry...`);
+ await sleep(1000);
143
await authenticate(database);
144
}
145
0 commit comments