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:
parent
be9caa0b61
commit
4c5a99d554
3 changed files with 175 additions and 19 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue