Implement /api/runner/status
This commit is contained in:
parent
5c8c037417
commit
c713abc5d3
11 changed files with 296 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue