You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These just landed via #202. I'm not entirely clear on how we intend
to handle "the application died before we finished executing post-stop
hooks", but I've made my best guess here.
Signed-off-by: W. Trevor King <wking@tremily.us>
Copy file name to clipboardExpand all lines: runtime.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,17 +39,18 @@ A typical lifecyle progresses like this:
39
39
4. The runtime executes any [pre-start hooks](runtime-config.md#pre-start)
40
40
5. The runtime [executes the container process](#start-process)
41
41
6. The container process is running
42
-
7. A user tells the runtime to send a termination signal to the container process
43
-
8. The runtime [sends a termination signal to the container process](#stop-process)
44
-
9. The container process exits
45
-
10. The runtime [terminates any other processes in the container](#stop-process)
46
-
11. The runtime executes any [post-stop hooks](runtime-config.md#post-stop)
47
-
12. The runtime [removes the container](#cleanup)
42
+
7. The runtime executes any [post-start hooks](runtime-config.md#post-start)
43
+
8. A user tells the runtime to send a termination signal to the container process
44
+
9. The runtime [sends a termination signal to the container process](#stop-process)
45
+
10. The container process exits
46
+
11. The runtime [terminates any other processes in the container](#stop-process)
47
+
12. The runtime executes any [post-stop hooks](runtime-config.md#post-stop)
48
+
13. The runtime [removes the container](#cleanup)
48
49
49
50
With steps 7 and 8, the user is explicitly stopping the container process (via the runtime), but it's also possible that the container process could exit for other reasons.
50
-
In that case we skip directly from 6 to [10](#stop-process).
51
+
In that case we skip directly from 6 to [10](#stop-process), skipping any post-start hooks that hadn't been launched and terminating any in-progress post-start hook.
51
52
52
-
Failure in a pre-start hook or other setup task can cause a jump straight to [11](runtime-config.md#post-stop).
53
+
Failure in a pre-start hook or other setup task can cause a jump straight to [12](runtime-config.md#post-stop).
0 commit comments