HomeSoftware Heritage

Introduce some scaffolding for an attrs-based BaseSchedulerModel

Description

Introduce some scaffolding for an attrs-based BaseSchedulerModel

Alongside swh.model.model, this allows us to define data models for the objects
the scheduler is working with, and to serialize/deserialize these objects
transparently at the RPC layer.

This also introduces some mild ORM-like logic so we can keep the actual SQL a
little DRYer.

Details

Provenance
olasdAuthored on Jun 12 2020, 11:03 AM
olasdPushed on Jun 15 2020, 4:01 PM
Differential Revision
D3270: Introduce some scaffolding for an attrs-based BaseSchedulerModel
Parents
rDSCH4c0c37bab05a: Use the automatic RPC client/server generation
Branches
Unknown
Tags
Unknown
Build Status
Buildable 12857
Build 19572: test-and-buildJenkins console · Jenkins