Add variant-group data model for cross-model queue alternatives (#671)

Adds file_variant_groups plus variant_group_id / variant_position on
library_files, so a set of files that are the same job sliced for
different printers can be resolved to whichever printer frees up first.

Backfills groups from the sliced_from_library_file_id provenance that
slice_and_persist and the pipeline runner have been writing into
file_metadata since they shipped, and which nothing has ever read.
Only sources with two or more children carrying distinct
sliced_for_model values are grouped: a single candidate is not a
choice, and two slices for the same printer give the resolver no basis
to prefer one.
This commit is contained in:
maziggy
2026-08-03 10:17:28 +02:00
parent b2f84cd37f
commit da07c5884b
6 changed files with 9224 additions and 1 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long