crates/common: add branch and scheduling_shares to jobset models

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie19897f5ffdfb44654891511ce669d806a6a6964
This commit is contained in:
raf 2026-02-02 01:23:10 +03:00
commit 4c5a99d554
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 175 additions and 19 deletions

View file

@ -24,6 +24,8 @@ pub struct Jobset {
pub enabled: bool,
pub flake_mode: bool,
pub check_interval: i32,
pub branch: Option<String>,
pub scheduling_shares: i32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
@ -128,6 +130,8 @@ pub struct ActiveJobset {
pub enabled: bool,
pub flake_mode: bool,
pub check_interval: i32,
pub branch: Option<String>,
pub scheduling_shares: i32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub project_name: String,
@ -278,6 +282,8 @@ pub struct CreateJobset {
pub enabled: Option<bool>,
pub flake_mode: Option<bool>,
pub check_interval: Option<i32>,
pub branch: Option<String>,
pub scheduling_shares: Option<i32>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@ -287,6 +293,8 @@ pub struct UpdateJobset {
pub enabled: Option<bool>,
pub flake_mode: Option<bool>,
pub check_interval: Option<i32>,
pub branch: Option<String>,
pub scheduling_shares: Option<i32>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]