CLI

kontinue provides a CLI tool for managing Executions and Functions, for example:

$ kontinue functions
NAME              DESCRIPTION                                                   GROUP         AGE
benchmark-nested  Runs configurable number of simple child executions - mea...  default       6d
benchmark-simple  Does nothing - measures baseline execution overhead           default       6d
benchmark-sleep   Sleeps for a configurable duration - measures suspension ...  default       6d

$ kontinue execute benchmark-simple
benchmark-simple-7nfhb started

$ kontinue list
NAME                    FUNCTION          PHASE      WORKER                           AGE
benchmark-simple-7nfhb  benchmark-simple  Completed  kontinue-bench-5c6fc497b5-bz8lw  21s

Installation

The kontinue CLI can be installed from source:

$ go install gitlab.com/kontinue/kontinue/cmd/kontinue@latest
go: downloading gitlab.com/kontinue/kontinue v0.0.2

$ kontinue --help
Usage: kontinue <command> [flags]

Kontinue CLI for managing durable executions

Features

The CLI provides management of executions, e.g.

  • kontinue list to list executions or filter
  • kontinue show $execution provides an interactive TUI for a single execution tree
  • kontinue cancel, retry, resume to operate on executions manually

It also provides basic functionality for other resources, e.g. kontinue functions to list Functions and kontinue schedules to list ScheduledExecutions.

The CLI embeds the UI server, which can be started with kontinue server.

Using kubectl

kontinue operates on standard Kubernetes Custom Resources which means that you can manage Executions and Functions with kubectl.

$ kubectl get functions
NAME               DESCRIPTION                                                                               GROUP
benchmark-nested   Runs configurable number of simple child executions - measures child execution overhead   default
benchmark-simple   Does nothing - measures baseline execution overhead                                       default
benchmark-sleep    Sleeps for a configurable duration - measures suspension overhead                         default

$ kubectl get executions
NAME                     FUNCTION           PHASE       GROUP   WORKER                            AGE
benchmark-simple-7nfhb   benchmark-simple   Completed           kontinue-bench-5c6fc497b5-bz8lw   96s

$ kubectl delete execution 
execution.kontinue.cloud "benchmark-simple-7nfhb" deleted from default namespace