summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-07-01 16:00:55 -0700
committeriximeow <me@iximeow.net>2023-07-01 16:00:55 -0700
commit812181aaef68f788108e03471f520830eeabd612 (patch)
treecf10f60d56e26cf0b2c6d0429af862da278f74f8 /src
parent273fe2e281ee6cacc9abe5e8aacaf9bc23dd3295 (diff)
job->run in driver
Diffstat (limited to 'src')
-rw-r--r--src/ci_driver.rs4
1 files changed, 2 insertions, 2 deletions
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<DbCtx>, 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);