Skip to content

Commit

Permalink
akka-loader: Fix loading 14th round
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackmorse committed Aug 31, 2024
1 parent b5017fe commit 406b6ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akka-loader/src/main/scala/LoaderApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object LoaderApp extends App {
} else {
entity
}
logger.info(s"Entity type: $entity")
logger.info(s"Entity type: $entity, real entity $realEntity")
val (taskExecutorActor, scheduler) = executorAndScheduler(realEntity, lastMatchWindow, executorActorFactory, worldDetails)
scheduler.loadScheduled()
actorSystem.scheduler.scheduleWithFixedDelay(0.second, 5.second)(() => taskExecutorActor ! TryToExecute)
Expand Down
2 changes: 1 addition & 1 deletion akka-loader/src/main/scala/scheduler/LeagueScheduler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class LeagueScheduler(worldDetails: WorldDetails,

val previousWeekMs = if (matchesAlreadyFinished) 1000L * 3600 * 24 * 7 else 0L
worldDetails.leagueList
.filter(_.matchRound < 15) // check at the end of the season!
.filter(_.matchRound < 16) // check at the end of the season!
.map(league => {
val minutesOffset: Long = countriesToMinutesOffset.getOrElse(league.leagueId, 0)

Expand Down

0 comments on commit 406b6ae

Please sign in to comment.