Add fetch recent gribs to scheduler

This commit is contained in:
Guntis Smaukstelis
2025-02-12 23:32:30 +02:00
parent 35acc79095
commit 78060f61c0
2 changed files with 9 additions and 17 deletions
+2 -2
View File
@@ -99,11 +99,11 @@ class FetchService(log: Logger[IO]) {
* check local forecast grib files not to download them again
* fetch those forecasts
*/
def fetchRecentForecasts(): IO[Unit] = {
def fetchRecentForecasts(): IO[List[String]] = {
for {
dateTimeList <- generateFetchList()
resultList <- fetchFromList(dateTimeList)
} yield ()
} yield resultList
}
def generateFetchList(): IO[List[ZonedDateTime]] = {