Module: Ductr::Store::JobSerializer
- Included in:
- JobStore, PipelineSerializer
- Defined in:
- lib/ductr/store/job_serializer.rb
Overview
Convert jobs into active job serializable structs.
Defined Under Namespace
Classes: SerializedJob
Instance Method Summary collapse
-
#serialize_job(job) ⇒ SerializedJob
Convert the given job into a ‘SerializedJob` struct.
Instance Method Details
#serialize_job(job) ⇒ SerializedJob
Convert the given job into a ‘SerializedJob` struct.
54 55 56 |
# File 'lib/ductr/store/job_serializer.rb', line 54 def serialize_job(job) SerializedJob.new(job.job_id, job.status, job.error) end |