Closed andycasey closed 5 days ago
Fixed by creating a PipelineOutputModel
class, which all pipelines will inherit from. The PipelineOutputModel
class does the following:
v_astra
as an integer (not a string): major * 1e6 + minor * 1e3 + patch
;v_astra_major_minor
) that is hidden (won't appear in files), evaluated as v_astra_major_minor = v_astra / 1000
and is stored on the PostgreSQL table;(v_astra_major_minor
, spectrum_pk
)task_pk
, source_pk
, spectrum_pk
, v_astra
, created
, modified
, t_elapsed
, t_overhead
, tag
.
If we switch to using
v_astra_major
,v_astra_minor
,v_astra_patch
, -- which I think it should -- then we should just require constraint onv_astra_major
.