From 5c50efd836b1d17bf43166f3dad07ac4d70f9b73 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 14 Aug 2023 11:59:07 -0500 Subject: [PATCH] oops there's an infinite loop --- src/api/service.rs | 4 +--- src/jobs.rs | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/service.rs b/src/api/service.rs index 51008c0..27a4e0a 100644 --- a/src/api/service.rs +++ b/src/api/service.rs @@ -3,9 +3,7 @@ use std::collections::HashMap; use axum::extract::{Path, State}; use axum::Json; use entity::{process, service}; -use sea_orm::{ - EntityTrait, ModelTrait, -}; +use sea_orm::{EntityTrait, ModelTrait}; use crate::error::Result; use crate::AppState; diff --git a/src/jobs.rs b/src/jobs.rs index 1c4676f..40e1db7 100644 --- a/src/jobs.rs +++ b/src/jobs.rs @@ -52,6 +52,7 @@ impl Scheduler { println!("Spawned worker thread [{}]: {handle:?}", worker); } + /* tokio::spawn(async { loop { // TODO: Implement @@ -60,5 +61,6 @@ impl Scheduler { // add new incomplete containers to the worker queue } }); + */ } }