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:
parent
9e7aae3a8b
commit
e32fb8d6ef
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user