Add status to Ci::Partition
Ref: #454978 (closed)
What does this MR do and why?
This MR is the first toward bringing CI automated partitioning creation.
- Adds new
status
column to keep track ofCi::Partition
life cycle with a state machine - Add relevant logic used to determine when we need to create this record. It will then be used to decide when we want to create new partitions dynamically.
In a follow up MR we will introduce a CRON worker to populate this record when necessary.
Why are we doing this?
It adds a new status to Ci::Partition
which will be used to implement our time decay feature.
Edited by Max Orefice