diff options
author | iximeow <me@iximeow.net> | 2023-07-02 14:30:11 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-07-02 14:30:11 -0700 |
commit | 13828668b0fc83234b3252d4c1a7e7e7ee1ca51d (patch) | |
tree | 0aec0869f489a0a1d838ba42c819e81d0a955ac7 | |
parent | 973876b035805ddc14e39165c643dcf417fbc6ca (diff) |
last run for job should be the chronologically most recent
-rw-r--r-- | src/sql.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ pub const LAST_RUN_FOR_JOB: &'static str = "\ complete_time, run_timeout, build_result, - final_status from runs where job_id=?1;"; + final_status from runs where job_id=?1 order by started_time desc limit 1;"; pub const SELECT_ALL_RUNS_WITH_JOB_INFO: &'static str = "\ select jobs.id as job_id, runs.id as run_id, runs.state, runs.created_time, jobs.commit_id |