On Wed, Nov 23, 2022 at 3:01 PM Thomas Lockhart <
tlockh...@gmail.com> wrote:
>
> Why not use the existing Django AutoField?
Because I have multiple rows with the same batch_id, and also I would
like the batch_ids to be sequential.
The use case is a batch job dashboard. Users run jobs that spawn many
sub jobs. The jobs all record their status in the JobStatus table. The
batch dashboard shows all the sub jobs grouped under their parent job.
The parent job creates a row with a new batch_id, and that is passed
to the sub jobs. They all record their status using that same batch
id, but each in its own row.