Skip to main content

Engine.set_auto_suspend_seconds

Engine.set_auto_suspend_seconds(value)

Set the time the engine should wait before automatically shutting down.

Parameters:

   value: int
Time before auto shutdown in seconds.

Returns:

   None

Examples:

Setting my engines auto suspend time to 30 min.

    engine = pc.get_engine('small_cpu_engine', activate=True)
engine.set_auto_suspend_seconds(1800)