Skip to content

Commit

Permalink
fix: inherit env req for restarted job
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jun 19, 2024
1 parent 337d5b7 commit 4fc4bb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ async fn job_restart_in_transaction(job_id: i32, conn: &mut PgConnection) -> any
creation_time: chrono::Utc::now(),
status: "created".to_string(),
github_check_run_id: None,
require_min_core: None,
require_min_total_mem: None,
require_min_total_mem_per_core: None,
require_min_disk: None,
require_min_core: job.require_min_core,
require_min_total_mem: job.require_min_total_mem,
require_min_total_mem_per_core: job.require_min_total_mem_per_core,
require_min_disk: job.require_min_disk,
};

// create new github check run if the restarted job has one
Expand Down

0 comments on commit 4fc4bb2

Please sign in to comment.