Skip to content

Commit a1dd1f8

Browse files
authored
fix: engine incorrect auto_stop update in case it is 0 (#161)
1 parent d2002e4 commit a1dd1f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/firebolt/model/engine.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ class _EngineUpdateRequest(FireboltBaseModel):
355355
# Update engine settings
356356
engine_settings_params = {
357357
"engine_type": engine_type,
358-
"auto_stop_delay_duration": f"{auto_stop * 60}s" if auto_stop else None,
358+
"auto_stop_delay_duration": f"{auto_stop * 60}s"
359+
if auto_stop is not None
360+
else None,
359361
"warm_up": warmup,
360362
}
361363
self.settings = EngineSettings.default(**prune_dict(engine_settings_params))

0 commit comments

Comments
 (0)