submitJob

inline fun submitJob(queue: String, fn: JobSubmission.Builder.() -> Unit)

Submits a new job to the async compute platform.

Parameters

queue

ID/name of the target queue this job should be submitted to.

fn

Action used to configure the job to submit.

Throws

If the given queue value is not a valid queue ID/name.


Submits a new job to the async compute platform.

Parameters

queue

ID/name of the target queue this job should be submitted to.

job

Configuration for the job to submit.

Throws

If the given queue value is not a valid queue ID/name.

If the ID of the given job already exists, belongs to another instance of this service, and is not expired.