JobDispatch

fun JobDispatch(jobID: HashID, type: String, body: JsonNode?)

Constructs a new JobDispatch instance.

Parameters

jobID

Hash ID of the job to execute.

type

Arbitrary type of the job payload. Not used internally, intended to be used by the worker node.

If no type value is needed, an empty string may be used.

body

Extra data for the job. This value should not exceed 8kb in size when serialized to JSON. If a greater size payload is needed consider using an external means to grant the worker access, such as the filesystem or a database.

If no body is needed, this value may be null.