Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/kind_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
name: E2E tests for K8s (KinD)
runs-on: ubuntu-latest
env:
DAPR_RUNTIME_PINNED_VERSION: 1.16.1
DAPR_RUNTIME_PINNED_VERSION: 1.17.0-rc.1
DAPR_DASHBOARD_PINNED_VERSION: 0.15.0
DAPR_RUNTIME_LATEST_STABLE_VERSION:
DAPR_DASHBOARD_LATEST_STABLE_VERSION:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self_hosted_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
GOARCH: ${{ matrix.target_arch }}
GOPROXY: https://proxy.golang.org
ARCHIVE_OUTDIR: dist/archives
DAPR_RUNTIME_PINNED_VERSION: "1.16.1"
DAPR_RUNTIME_PINNED_VERSION: "1.17.0-rc.1"
DAPR_DASHBOARD_PINNED_VERSION: 0.15.0
DAPR_RUNTIME_LATEST_STABLE_VERSION: ""
DAPR_DASHBOARD_LATEST_STABLE_VERSION: ""
Expand Down
6 changes: 5 additions & 1 deletion cmd/workflow/purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ var (
flagPurgeOlderThan string
flagPurgeAll bool
flagPurgeConn *connFlag
flagPurgeForce bool
schedulerNamespace string
)

var PurgeCmd = &cobra.Command{
Use: "purge",
Short: "Purge one or more workflow instances with a terminal state. Accepts a workflow instance ID argument or flags to purge multiple/all terminal instances. Also deletes all associated scheduler jobs.",
Short: "Purge workflow instances with a terminal state.",
Long: "Purge one or more workflow instances with a terminal state. Accepts a workflow instance ID argument or flags to purge multiple/all terminal instances. Also deletes all associated scheduler jobs.",
Args: func(cmd *cobra.Command, args []string) error {
switch {
case cmd.Flags().Changed("all-older-than"),
Expand Down Expand Up @@ -63,6 +65,7 @@ var PurgeCmd = &cobra.Command{
All: flagPurgeAll,
ConnectionString: flagPurgeConn.connectionString,
TableName: flagPurgeConn.tableName,
Force: flagPurgeForce,
}

if cmd.Flags().Changed("all-older-than") {
Expand All @@ -80,6 +83,7 @@ func init() {
PurgeCmd.Flags().StringVar(&flagPurgeOlderThan, "all-older-than", "", "Purge workflow instances older than the specified Go duration or timestamp, e.g., '24h' or '2023-01-02T15:04:05Z'.")
PurgeCmd.Flags().BoolVar(&flagPurgeAll, "all", false, "Purge all workflow instances in a terminal state. Use with caution.")
PurgeCmd.MarkFlagsMutuallyExclusive("all-older-than", "all")
PurgeCmd.Flags().BoolVar(&flagPurgeForce, "force", false, "force will force a purge of a workflow, regardless of its current runtime state, or whether an active worker can process it, the backend will attempt to delete it anyway. This necessarily means the purging is executed out side of the workflow state machine, and therefore, can lead to corrupt state or broken workflow execution. Usage of this should _only_ be used when you know the workflow is not being currently processed. It is highly recommended to avoid using this flag unless absolutely necessary.")

PurgeCmd.Flags().StringVar(&schedulerNamespace, "scheduler-namespace", "dapr-system", "Kubernetes namespace where the scheduler is deployed, only relevant if --kubernetes is set")

Expand Down
3 changes: 2 additions & 1 deletion cmd/workflow/raiseevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var (

var RaiseEventCmd = &cobra.Command{
Use: "raise-event",
Short: "Raise an event for a workflow waiting for an external event. Expects a single argument '<instance-id>/<event-name>'.",
Short: "Raise an event for a workflow waiting for an external event.",
Long: "Raise an event for a workflow waiting for an external event. Expects a single argument '<instance-id>/<event-name>'.",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := signals.Context()
Expand Down
3 changes: 2 additions & 1 deletion cmd/workflow/rerun.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ var (

var ReRunCmd = &cobra.Command{
Use: "rerun [instance ID]",
Short: "ReRun a workflow instance from the beginning or a specific event. Optionally, a new instance ID and input to the starting event can be provided.",
Short: "Re-run a workflow instance.",
Long: "ReRun a workflow instance from the beginning or a specific event. Optionally, a new instance ID and input to the starting event can be provided.",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := signals.Context()
Expand Down
3 changes: 2 additions & 1 deletion cmd/workflow/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ var (

var RunCmd = &cobra.Command{
Use: "run",
Short: "Run a workflow instance based on a given workflow name. Accepts a single argument, the workflow name.",
Short: "Run a workflow instance.",
Long: "Run a workflow instance based on a given workflow name. Accepts a single argument, the workflow name.",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := signals.Context()
Expand Down
2 changes: 1 addition & 1 deletion cmd/workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func connectionCmd(cmd *cobra.Command) *connFlag {
flagTableName string
)

cmd.Flags().StringVarP(&flagConnectionString, "connection-string", "c", "", "The connection string used to connect and authenticate to the actor state store")
cmd.Flags().StringVarP(&flagConnectionString, "connection-string", "c", "", "Only used for Dapr runtime versions 1.16. The connection string used to connect and authenticate to the actor state store")
cmd.Flags().StringVarP(&flagTableName, "table-name", "t", "", "The name of the table or collection which is used as the actor state store")

var cflag connFlag
Expand Down
38 changes: 20 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
module github.com/dapr/cli

go 1.24.7
go 1.24.11

require (
github.com/Masterminds/semver v1.5.0
github.com/Masterminds/semver/v3 v3.3.0
github.com/Pallinder/sillyname-go v0.0.0-20130730142914-97aeae9e6ba1
github.com/briandowns/spinner v1.19.0
github.com/dapr/dapr v1.16.0
github.com/dapr/durabletask-go v0.10.0
github.com/dapr/dapr v1.16.1-rc.3.0.20260109125959-3e6d229306c2
github.com/dapr/durabletask-go v0.10.2-0.20260109105925-0094a750e8b7
github.com/dapr/go-sdk v1.13.0
github.com/dapr/kit v0.16.1
github.com/diagridio/go-etcd-cron v0.9.1
github.com/dapr/kit v0.16.2-0.20251124175541-3ac186dff64d
github.com/diagridio/go-etcd-cron v0.10.1-0.20260105221246-ee8c118dd834
github.com/docker/docker v25.0.6+incompatible
github.com/evanphx/json-patch/v5 v5.9.0
github.com/fatih/color v1.17.0
github.com/go-sql-driver/mysql v1.8.1
github.com/gocarina/gocsv v0.0.0-20220927221512-ad3251f9fa25
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/hashicorp/go-version v1.6.0
Expand All @@ -36,16 +37,17 @@ require (
github.com/stretchr/testify v1.10.0
go.etcd.io/etcd/client/v3 v3.5.21
go.mongodb.org/mongo-driver v1.14.0
golang.org/x/mod v0.25.0
golang.org/x/sys v0.33.0
google.golang.org/protobuf v1.36.6
golang.org/x/mod v0.29.0
golang.org/x/sys v0.38.0
google.golang.org/grpc v1.73.0
google.golang.org/protobuf v1.36.9
gopkg.in/yaml.v2 v2.4.0
helm.sh/helm/v3 v3.17.1
k8s.io/api v0.32.1
k8s.io/api v0.32.3
k8s.io/apiextensions-apiserver v0.32.1
k8s.io/apimachinery v0.33.0
k8s.io/cli-runtime v0.32.1
k8s.io/client-go v0.32.1
k8s.io/client-go v0.32.3
k8s.io/helm v2.16.10+incompatible
sigs.k8s.io/yaml v1.4.0
)
Expand All @@ -54,6 +56,7 @@ require (
cel.dev/expr v0.23.0 // indirect
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect
dario.cat/mergo v1.0.1 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
Expand All @@ -76,7 +79,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/chebyrash/promise v0.0.0-20230709133807-42ec49ba1459 // indirect
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.14.0 // indirect
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.15.2 // indirect
github.com/cloudevents/sdk-go/v2 v2.15.2 // indirect
github.com/containerd/containerd v1.7.24 // indirect
github.com/containerd/errdefs v0.3.0 // indirect
Expand All @@ -85,7 +88,7 @@ require (
github.com/coreos/go-semver v0.3.1 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
github.com/dapr/components-contrib v1.16.0 // indirect
github.com/dapr/components-contrib v1.16.2-0.20260105164851-3e22d45d5cae // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
Expand Down Expand Up @@ -240,17 +243,16 @@ require (
go.opentelemetry.io/proto/otlp v1.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.39.0 // indirect
golang.org/x/crypto v0.45.0 // indirect
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
golang.org/x/net v0.41.0 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/sync v0.15.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/text v0.26.0 // indirect
golang.org/x/sync v0.18.0 // indirect
golang.org/x/term v0.37.0 // indirect
golang.org/x/text v0.31.0 // indirect
golang.org/x/time v0.11.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250512202823-5a2f75b736a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/grpc v1.73.0 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
Loading
Loading