invoke

operator fun invoke(id: String, runsOn: RunsOn, job: Job.() -> Unit = { }): Job

Creates and configures a Job instance with Kotlin DSL syntax.

Return

Configured Job instance

Parameters

id

Unique identifier for the job (will be converted to lowercase with spaces replaced by hyphens)

runsOn

The runner environment where the job will execute

job

Configuration lambda to set up the job