Strait Docs
CLI

Commands for monitoring server health, resource usage, and run lifecycle events.

stats

Show queue statistics including queued, executing, and delayed counts.

strait stats

health

Check server health status.

FlagTypeDefaultDescription
--readyboolfalseChecks Postgres and Redis connectivity
strait health --ready

top

Live resource usage statistics.

FlagTypeDefaultDescription
--watchboolfalseEnable live updates
--intervalduration2sUpdate interval
--projectstringFilter by project

top queue

Show queue depth metrics.

strait top queue --watch

top jobs

Show job execution metrics.

strait top jobs --interval 5s

tui

Interactive terminal dashboard for real-time monitoring.

FlagTypeDefaultDescription
--projectstringFilter by project
--intervaldurationRefresh interval
--run-limitintMaximum number of runs to display
--event-limitintMaximum number of events to display
strait tui --project my-project

verify

Perform post-deployment verification checks to ensure the environment is correctly configured.

strait verify

diagnose

General troubleshooting diagnostics.

FlagTypeDefaultDescription
--verboseboolfalseEnable verbose output
--check-readinessboolfalseCheck if the system is ready for operations
strait diagnose --verbose

diagnose run

Diagnose a specific run by ID.

FlagTypeDefaultDescription
--followboolfalseFollow the diagnosis in real time
--intervalduration2sRefresh interval
--levelstringFilter by log level
--typestringFilter by event type
--show-payloadboolfalseInclude event payloads in output
--show-resultboolfalseInclude event results in output
--event-limitint50Maximum number of events to show
strait diagnose run <run_id> --follow

listen

Watch for new runs in real time.

FlagTypeDefaultDescription
--projectstringFilter by project
--statusstringFilter by run status
--intervalduration2sPolling interval
strait listen --project my-project --status executing

drain

Wait for executing runs to complete. This is useful for graceful shutdowns.

FlagTypeDefaultDescription
--timeoutduration5mMaximum time to wait
--intervalduration2sCheck interval

The command exits with code 0 when the count reaches 0, and exits with code 1 if the timeout is reached.

strait drain --timeout 10m

trace

ASCII timeline visualization of a run lifecycle events.

FlagTypeDefaultDescription
--show-payloadboolfalseInclude event payloads
--show-resultboolfalseInclude event results
--event-limitint50Maximum number of events to visualize
strait trace <run_id> --show-payload

logs

View events for a specific run or project.

FlagTypeDefaultDescription
--runstringFilter by run ID
--projectstringFilter by project
--levelstringFilter by log level
--typestringFilter by event type
--follow, -fboolfalseStream logs in real time
--intervalduration2sRefresh interval
strait logs --run <run_id> --follow

events

Inspect run events.

FlagTypeDefaultDescription
--runstringRun ID (Required)
--levelstringFilter by log level
--typestringFilter by event type
strait events --run <run_id> --level error
Was this page helpful?

On this page