Skip to content

[feat] custom graceful stop timeout #5333

Description

@loynoir

Description

feat

custom graceful stop timeout

background

I found:

Currently, graceful stop will wait for 3m, then enforce stop.

Try to figure out how to custom graceful stop timeout.

But seems no way, due to hard code.

https://github.com/lima-vm/lima/blob/master/pkg/driver/qemu/qemu_driver.go#L446-L448

func (l *LimaQemuDriver) Stop(ctx context.Context) error {
	return l.shutdownQEMU(ctx, 3*time.Minute, l.qCmd, l.qWaitCh)
}

actual

graceful stop timeout is hard code as 3m

expected

custom graceful stop timeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions