enqueue

suspend fun enqueue(request: TaskRequest)

Enqueues a task request.

Deduplication: If a task with the same ID already exists in the repository (status PENDING or RUNNING), it will not be inserted again.

Parameters

request

The task to schedule.