Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.3 KB

runware_serverless_apps_workers.md

File metadata and controls

68 lines (49 loc) · 2.3 KB

runware serverless apps workers

List and inspect workers for a serverless application

Synopsis

List workers observed for an application.

The default page is the active version only. An application with no active version therefore answers an empty default page: it has no pinned version, not that it has no workers. Pass --version all to include every version, or --version to scope to one.

The default state is all: terminal stopped rows stay in the page until they are purged. Pass --state live to drop them. --state live with --status stopped is refused by the API (422), because an empty page would read as "this app has never run".

runware serverless apps workers <appId> [flags]

Examples

  # list workers for the active version
  runware serverless apps workers my-app

  # include workers from every version
  runware serverless apps workers my-app --version all

  # omit terminal stopped rows
  runware serverless apps workers my-app --state live

  # filter by status
  runware serverless apps workers my-app --status ready

  # page through results
  runware serverless apps workers my-app --limit 20 --cursor <nextCursor>

Options

      --cursor string    Pagination cursor from a previous nextCursor
  -h, --help             help for workers
      --limit int        Maximum number of workers to return (1-100)
      --state string     Include stopped rows (all, the API default) or drop them (live)
      --status string    Filter by status (ready, busy, pending, …)
      --version string   Scope to a version ID, or all (default: the active version)

Options inherited from parent commands

      --debug              Show full debug output
  -e, --env name           Environment the app runs in (default RUNWARE_ENV, else the config's environment, else production)
      --environment name   Alias for --env
  -F, --format string      CLI output format: table, json, yaml (default "table")
      --transport string   Transport protocol: ws (WebSocket) or http (REST) (default "ws")
  -v, --verbose            Show request/response details

SEE ALSO