SchedulerWorker

class SchedulerWorker @Inject constructor(workerService: WorkerService, repoConnector: RepoConnector, locksClient: LocksClient, queueClient: ProducerQueueClient)

Scheduler worker responsible for starting and stopping the task processing.

Constructors

Link copied to clipboard
@Inject
constructor(workerService: WorkerService, repoConnector: RepoConnector, locksClient: LocksClient, queueClient: ProducerQueueClient)

Creates an instance of SchedulerWorker with the specified dependencies.

Types

Link copied to clipboard
object Companion : Logging

Functions

Link copied to clipboard
suspend fun start(instanceId: Int, channel: ReceiveChannel<Task>)

Starts the worker service to begin processing tasks.

Link copied to clipboard
suspend fun stop(instanceId: Int)

Stops the worker service and shuts down the repository connector, locks client, and queue client.