    

 ## On this page

  

 

 # newJob

 Last update: 16.07.2025 

abstract fun [newJob](new-job.md)(numRuns: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))

Start setting up a new job.

#### Parameters

numRunsthe number of runs to use#### Throws

[IllegalStateException](https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html)if a new job cannot be started right now[IllegalArgumentException](https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html)if the number of runs is not valid