plane icon indicating copy to clipboard operation
plane copied to clipboard

Make termination conditions more flexible.

Open paulgb opened this issue 2 years ago • 0 comments

This would introduce a struct to replace grace_period_seconds.

I suggest:

struct ShutdownCondition {
    idle_threshold_seconds: Option<u32>, // replaces grace_period_seconds
    time_limit_seconds: Option<u32>, // total time limit
}

Now that we will have a way to terminate via API (#123), the condition where both values are None is conceivable.

paulgb avatar Aug 30 '22 13:08 paulgb