mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
[PR #766] [MERGED] Add option to make run command detachable #780
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/766
Author: @bpbradley
Created: 8/25/2025
Status: ✅ Merged
Merged: 8/25/2025
Merged by: @mbecker20
Base:
1.19.2← Head:run-stack-detached📝 Commits (1)
7ef39b2Add option to make run command detachable📊 Changes
7 files changed (+23 additions, -0 deletions)
View changed files
📝
bin/core/src/api/execute/stack.rs(+1 -0)📝
bin/periphery/src/api/compose.rs(+4 -0)📝
client/core/rs/src/api/execute/stack.rs(+3 -0)📝
client/core/ts/src/types.ts(+2 -0)📝
client/periphery/rs/src/api/compose.rs(+3 -0)📝
frontend/public/client/types.d.ts(+2 -0)📝
frontend/src/components/resources/procedure/config.tsx(+8 -0)📄 Description
I missed this use case in original testing, but it may occasionally be necessary to run the command in a detached state, in the event of a long running command or one where periphery may be disconnected during run.
The only downside of running detached, which is why I didn't originally include it, is that you don't have access to the logs. For this reason, it defaults to disabled (previous behavior). And if you need the logs, you can get them and follow them in the same way by the process ID returned by the run command, which is printed to stdout.
So for example in an Action,
And then you would be able to create a terminal on that server, and execute in terminal something like
docker logs -f {pid}to stream the logs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.