File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ pub struct EpsilonInstanceStatus {
42
42
pub slots : i32 ,
43
43
44
44
pub close : bool ,
45
- pub start : bool ,
46
45
}
47
46
48
47
impl EpsilonInstance {
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ impl EpsilonController {
185
185
186
186
let state = if is_starting
187
187
|| !instance_status. is_some ( )
188
- || ( !instance_status . as_ref ( ) . unwrap ( ) . start && is_running && !is_ready)
188
+ || ( is_running && !is_ready)
189
189
{
190
190
EpsilonState :: Starting
191
191
} else if is_running && is_ready {
@@ -214,8 +214,7 @@ impl EpsilonController {
214
214
215
215
slots : template. slots ,
216
216
217
- close : false ,
218
- start : state == EpsilonState :: Running ,
217
+ close : state == EpsilonState :: Stopping ,
219
218
220
219
state,
221
220
}
@@ -242,6 +241,8 @@ impl EpsilonController {
242
241
let close = new_status. close ;
243
242
244
243
if state == EpsilonState :: Stopping && !close {
244
+ debug ! ( "DELETE {}" , instance_name) ;
245
+
245
246
epsilon_instance_api
246
247
. patch_status (
247
248
instance_name,
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ impl Task for QueueTask {
43
43
44
44
if instances_starting. is_empty ( ) && instances_ready. is_empty ( ) {
45
45
instance_provider. start_instance ( template_name) . await ?;
46
+ return Ok ( ( ) ) ;
46
47
}
47
48
48
49
let ready_available_slots_result = instances_ready. get_available_slots ( ) . await ;
You can’t perform that action at this time.
0 commit comments