4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-19 07:27:07 +00:00

#5189 -- Run queue builder even if NP fails.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-03-13 01:33:46 -06:00
parent 9e7aae3a8b
commit e32fb8d6ef
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109

View File

@ -61,8 +61,23 @@ class NowPlayingPerStationCommand extends CommandAbstract
$this->logger->info('Starting Now Playing sync task.');
$this->nowPlayingTask->run($station);
$this->buildQueueTask->run($station);
try {
$this->nowPlayingTask->run($station);
} catch (\Throwable $e) {
$this->logger->error(
'Now Playing error: ' . $e->getMessage(),
['exception' => $e]
);
}
try {
$this->buildQueueTask->run($station);
} catch (\Throwable $e) {
$this->logger->error(
'Queue builder error: ' . $e->getMessage(),
['exception' => $e]
);
}
$this->logger->info('Now Playing sync task complete.');
$this->logger->popProcessor();