Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log ready #67

Merged
merged 5 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- ~~#54: Add `apiServer` option to control REST API server~~
- $60: Add `httpServer.{enable, port, uds}` options to control the HTTP server.
- #56: Add `preHook` and `postHook` for running commands before and after launching process-compose respectively.
- #67: Add `ready_log_line`
- Notable changes
- #58: Obviate IFD by switching to JSON config
- Fixes
Expand Down
12 changes: 12 additions & 0 deletions nix/process-compose/settings/process.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ in
"process_completed"
"process_completed_successfully"
"process_healthy"
"process_log_ready"
"process_started"
];
example = "process_healthy";
Expand Down Expand Up @@ -133,6 +134,17 @@ in
The settings used to check if the process is alive.
'';
};
ready_log_line = mkOption {
type = types.nullOr types.str;
default = null;
example = "process is ready";
description = ''
A string to search for in the output of the command that indicates
the process is ready. String will be part of a regex '.*{ready_log_line}.*'.
This should be used for long running processes that do not have a
readily accessible check for http or similar other checks.
'';
};

namespace = mkOption {
type = types.str;
Expand Down
Loading