Job Dispatch
data class JobDispatch(jobID: HashID, type: String, body: JsonNode?) : JsonSerializable
Content copied to clipboard
Job Request/Dispatch
Immutable struct representing a new job to execute.
Parameters
job ID
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.