koel/app/Console/Commands
Robin Burchell d9c2f9f368
fix: non-interactive database connection failures (#1306)
Two problems here:
1) endlessly attempting to reconnect (with no interval between attempts)
   is a nightmare that will use resources and spam logs with no respite
2) attempting to update the database credentials on a connection failure
   is definitely not the right thing to do, as they cannot be requested
   when non-interactive.

Problem 1 is not really an issue in interactive use, because the user
being asked for credentials will slow down the connection attempts.

Problem 2 _could_ conceiveably be a problem in interactive mode (if
there's some sort of transient connection failure), but if this is a
problem, it should perhaps be discussed & addressed separately.

Fixes #1294
2021-04-16 16:15:21 +02:00
..
Admin chore: fix CS 2020-12-22 21:11:22 +01:00
Traits feat: add PHPCSFixer 2020-09-06 23:20:42 +02:00
ImportSearchableEntitiesCommand.php feat(search): add Playlist as searchable 2021-01-05 17:52:16 +01:00
InitCommand.php fix: non-interactive database connection failures (#1306) 2021-04-16 16:15:21 +02:00
SyncCommand.php chore: fix CS 2020-12-22 21:11:22 +01:00
TidyLibraryCommand.php chore: fix CS 2020-12-22 21:11:22 +01:00