Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a3674a

Browse files
committed
add comment about idempotency
1 parent7e5ede0 commit7a3674a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎agent/agentcontainers/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,8 @@ func (api *API) cleanupSubAgents(ctx context.Context) error {
944944

945945
// maybeInjectSubAgentIntoContainerLocked injects a subagent into a dev
946946
// container and starts the subagent process. This method assumes that
947-
// api.mu is held.
947+
// api.mu is held. This method is idempotent and will not re-inject the
948+
// subagent if it is already/still running in the container.
948949
//
949950
// This method uses an internal timeout to prevent blocking indefinitely
950951
// if something goes wrong with the injection.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp