Remove store dependency from scheduler api

This commit is contained in:
eikek
2022-03-13 14:25:09 +01:00
parent 3a05dc56cb
commit 90e52efbff
51 changed files with 614 additions and 482 deletions

View File

@ -8,7 +8,6 @@ package docspell.scheduler
import docspell.common._
import docspell.logging.Logger
import docspell.store.Store
trait Context[F[_], A] { self =>
@ -22,8 +21,6 @@ trait Context[F[_], A] { self =>
def setProgress(percent: Int): F[Unit]
def store: Store[F]
def isLastRetry: F[Boolean]
def map[C](f: A => C): Context[F, C]

View File

@ -10,13 +10,12 @@ import cats.effect._
import fs2.Stream
import docspell.common.Ident
import docspell.store.records.RJob
trait Scheduler[F[_]] {
def config: SchedulerConfig
def getRunning: F[Vector[RJob]]
def getRunning: F[Vector[Job[String]]]
def requestCancel(jobId: Ident): F[Boolean]