Skip to content

Latest commit

 

History

History
80 lines (59 loc) · 5.97 KB

c8volt_suspend_process-instance.md

File metadata and controls

80 lines (59 loc) · 5.97 KB
title c8volt suspend process-instance
nav_exclude true

[CLI Reference]({{ "/cli/" | relative_url }})

c8volt suspend process-instance

Suspend explicitly selected active process instances

Synopsis

Suspend ACTIVE process instances on Camunda 8.10 by explicit key.

Provide repeated or comma-separated --key values, or newline-separated keys from stdin with '-'. Keys are deduplicated in first-input order. Without --tree, each selected parent or child is independent: relatives are neither discovered nor suspended. Explicit keys use backend authorization without discovery tenant filtering.

When authorization is enabled, suspension requires SUSPEND_PROCESS_INSTANCE on PROCESS_DEFINITION. Default confirmation also requires permission to read the instance. Without --tree, there is no mandatory preflight read; only the submission response establishes acceptance. Already-suspended, terminal, terminating, missing or unauthorized targets remain failures when rejected.

Default execution waits for observed SUSPENDED within the configured backoff timeout (two minutes by default, adjustable with --backoff-timeout). --timeout bounds each HTTP request. --no-wait returns accepted submission without confirmation reads. Partial failures retain acceptance and observation evidence with a nonzero exit. Without --tree, --dry-run previews exact keys without reads, writes or confirmation prompts; eligibility is not checked, including with --no-wait.

With --tree, discover each selected instance and its descendants, merge overlapping subtrees, and suspend only observed ACTIVE members. Selecting a child never escalates to its ancestors or siblings. Traverse through already-suspended and terminal parents; report SUSPENDED members separately and exclude other states. Tree mode requires additional instance read/search permissions, including with --dry-run and --no-wait. Tree dry-run previews discovered eligible targets without mutations or approval. A resolved scope with no active targets succeeds without changes or approval.

Tree approval names the expanded active target count. Execution uses that frozen scope without rediscovery; state races can still cause failures. Discovery retains up to 1,000 direct children per parent lookup, not a whole-tree cap. Execution is not atomic and may omit descendants created after discovery; coverage beyond the lookup limit is not guaranteed.

Suspension pauses engine execution while retaining runtime state and resources; it does not cancel the instance. It does not interrupt already-running worker code or undo external effects. Job completion/failure attempts are rejected during suspension, and affected jobs may execute again after resumption. Backpressure can delay or reject suspension; this is not an instantaneous emergency stop.

Use --auto-confirm or --automation for unattended execution. JSON requires --dry-run, --auto-confirm or --automation and cannot be combined with --verbose. Keys-only previews list selected keys (eligible targets with --tree); execution keys indicate acceptance, not confirmed suspension, even when confirmation fails. Use JSON and the exit status for confirmation evidence. Use --verbose for per-instance submission, confirmation, and last observed state. Quiet preserves explicit machine results and required errors. Use --debug for redacted HTTP diagnostics independently of --verbose.

c8volt suspend process-instance [flags]

Examples

  ./c8volt suspend process-instance --key <process-instance-key>
  ./c8volt suspend pi --key <key-a>,<key-b> --key <key-a> --dry-run --json
  ./c8volt suspend pi --key <process-instance-key> --tree --dry-run
  ./c8volt suspend pi --key <process-instance-key> --tree --auto-confirm --json
  ./c8volt suspend pi --key <process-instance-key> --auto-confirm --no-wait --json
  printf '%s\n' "$INSTANCE_A" "$INSTANCE_B" | ./c8volt suspend pi --auto-confirm -

Options

      --dry-run           preview without mutations; exact keys need no reads, --tree discovers eligible targets
      --fail-fast         stop scheduling new instances after the first error
  -h, --help              help for process-instance
  -k, --key strings       process instance key(s); repeat, comma-separate or combine with stdin '-'
      --no-wait           return after accepted suspension without confirmation reads
      --no-worker-limit   use all queued jobs as workers when --workers is unset
      --tree              include each selected instance and its descendants; suspend active instances only
  -w, --workers int       maximum concurrent workers (default: min(count, 2*GOMAXPROCS, 32))

Options inherited from parent commands

      --all-tenants          clear configured tenant filtering and search all tenants visible to the authenticated user; mutually exclusive with --tenant
  -y, --auto-confirm         auto-confirm prompts for non-interactive use
      --automation           enable non-interactive mode for commands that explicitly support it
      --config string        path to config file
      --debug                enable debug logging
  -j, --json                 output as JSON (where applicable)
      --keys-only            output keys only (where applicable)
      --log-level string     log level (debug, info, warn, error) (default "info")
      --no-indicator         disable transient terminal activity indicators
      --profile string       config active profile name to use (e.g. dev, prod)
  -q, --quiet                suppress output except errors
      --request-rate float   maximum shared request starts per second (fractions allowed; 0 disables pacing)
      --tenant string        tenant ID for discovery/search, selection, create, deploy, and run flows; explicit empty values can clear configured discovery filters, and explicit keys/IDs remain backend-authorized
      --timeout duration     HTTP request timeout (default 30s)
  -v, --verbose              show additional output

SEE ALSO

  • [c8volt suspend]({{ "/cli/c8volt_suspend" | relative_url }}) - Suspend active process instances