SchedulerFetcher

class SchedulerFetcher @Inject constructor(fetcherService: FetcherService, repoConnector: RepoConnector, config: SchedulerConfig)

Scheduler fetcher responsible for starting and stopping the task fetching process.

Constructors

Link copied to clipboard
@Inject
constructor(fetcherService: FetcherService, repoConnector: RepoConnector, config: SchedulerConfig)

Creates an instance of SchedulerFetcher with the specified dependencies.

Types

Link copied to clipboard
object Companion : Logging

Properties

Link copied to clipboard
val taskReadChannel: ReceiveChannel<Task>

Provides a receive-only channel for consumers to read tasks.

Functions

Link copied to clipboard
suspend fun start()

Starts the fetcher service to begin fetching tasks.

Link copied to clipboard
suspend fun stop()

Stops the fetcher service and shuts down the repository connector.