Implement /api/runner/status

This commit is contained in:
Joscha 2023-08-10 18:47:44 +02:00
parent 5c8c037417
commit c713abc5d3
11 changed files with 296 additions and 29 deletions

View file

@ -8,7 +8,7 @@ mod repo;
use tracing::{debug_span, error, Instrument};
use super::{BenchRepo, Repo, Server};
use super::{Repo, Server};
async fn recurring_task(state: &Server, repo: Repo) {
async {
@ -28,7 +28,7 @@ async fn recurring_task(state: &Server, repo: Repo) {
.await;
}
pub(super) async fn run(server: Server, repo: Repo, bench_repo: Option<BenchRepo>) {
pub(super) async fn run(server: Server, repo: Repo) {
loop {
recurring_task(&server, repo.clone()).await;
tokio::time::sleep(server.config.repo_update_delay).await;