Updated on 2024-05-25 GMT+08:00

Overview

Lifecycle management is a method used to execute calls at a specific stage. CAE provides two lifecycle management modes: post-start and pre-stop processing.

  • Post-start processing: After a component instance starts, a post-start event is triggered immediately. However, it is not ensured that the corresponding handler can be executed before EntryPoint of the container.

    The status of the component instance changes to Running only after the post-start function is executed. Therefore, when the command is set to an infinite loop, the CAE component status cannot change to Running.

  • Pre-stop processing: Before a component instance stops, a pre-stop event is sent.

    A pre-stop event is sent immediately before a component instance stops. Unless the grace period of the instance expires, the component instance is blocked until the function is executed.