class Beetle::TaskExec
- Beetle::TaskExec
- Reference
- Object
Overview
Captures information about a single execution of a Task
in the context of a Job
.
You never instantiate this class directly. It is managed internally by Beetle, but is
made available to an archiver as part of the job_exec
argument in the
Archiver#archive
method.
It contains the following fields:
id
- A unique (UUID) identifier for this specific task execution.swarm_id
- The id of the submitting swarm member (1 ..Job#n_swarm
)t_start
- The clock time (in UTC) when the http request was submitted.elapsed_usec
- The elapsed time in microseconds before a response was received.request_context
- Anything the Task chooses to record as contextual information on the request.is_success
- Boolean set totrue
if the response code was in the2xx
range.
Included Modules
- JSON::Serializable
Defined in:
beetle/task-exec.crConstructors
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned.