Skip to content

A new lifecycle hook which executes after service becomes healthy #13203

@Chostakovitch

Description

@Chostakovitch

Description

Hello there!

Not sure about the idea because I don't have the whole background behind lifecycle hooks.

I have use cases where I need to run a command with specific user/env after initialization, i.e. when the container is healthy. Doing so with external tools feels hackish; lifecycle hooks feels elegant to me in that case.

post_start probably shouldn't wait for healthiness when used as an entrypoint, right? So it could be either another hook or an option.

Do you think it could be a relevant, general use case? If so, what approach would you prefer?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions