From 812181aaef68f788108e03471f520830eeabd612 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 1 Jul 2023 16:00:55 -0700 Subject: job->run in driver --- src/ci_driver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ci_driver.rs b/src/ci_driver.rs index 25928ae..439b4d4 100644 --- a/src/ci_driver.rs +++ b/src/ci_driver.rs @@ -100,8 +100,8 @@ async fn activate_run(dbctx: Arc, run: &PendingRun, clients: &mut mpsc::R let connection = dbctx.conn.lock().unwrap(); connection.execute( - "update jobs set started_time=?1, run_host=?2, state=1, artifacts_path=?3, build_token=?4 where id=?5", - (now as u64, run_host, format!("{}", artifacts.display()), &client_job.client.build_token, job.id) + "update runs set started_time=?1, run_host=?2, state=1, artifacts_path=?3, build_token=?4 where id=?5", + (now as u64, run_host, format!("{}", artifacts.display()), &client_job.client.build_token, run.id) ) .expect("can update"); std::mem::drop(connection); -- cgit v1.1