RunServiceCommand
Runs a command in a running service's container, like docker exec; returns the exit code and the output's end once it exits or the timeout kills it. Over a bound on command, stdin or timeout = refused (named). Cannot start = exit 127 or 126, Docker's error in stdout. Untrusted output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin | No | Written to stdin, then closed. | |
| command | No | E.g. ["psql", "-c", "select 1"]; a shell line: ["sh", "-c", "ls | head"]. | |
| service | No | ||
| project_id | No | ||
| run_as_user | No | Empty = the container's. "root" can install packages. | |
| timeout_seconds | No | 0 = default. Kills the main process only. Over ~50 may outlast your client: background long jobs. | |
| working_directory | No | Empty = the container's. |