Skip to content

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Sep 19, 2025

Adds dapr scheduler delete which is a new CLI command to delete jobs
and actor reminders which are stored in scheduler. You can delete
multiple jobs at a time, or all jobs registered in a namespace.
The target namespace is required.

The given name encode the job target type in the string:

"job/<app-id>/<job-name>" for jobs
"actorreinder/<actor-type>||<actor-id>||<reminder-name>" for actor reminders
dapr scheduler delete -n foo job/foo/bar
dapr scheduler delete -k -n foo actorreminder/MyActor||1234||reminder1
dapr scheduler delete -n foo --delete-all-yes-i-know-what-i-am-doing

Adds `dapr scheduler list` which a new CLI command to list the jobs
which are in scheduler. Lists both app Jobs and actor reminders. Works
for both standalone and Kubernetes modes.

The jobs can be filtered by namespace with `-n ...`, as well as by job
target type `--filter-type={all, job, actorreminder}`. Defaults to all.

Supports output formats (`-o`) `short`, `wide`, `json` and `yaml`.
Defaults to `short`. `json` and `yaml` output formats are _not_
importable formats.

Fixes the table output prints to remove empty space at the start of
rows.

Adds e2e standalone tests for this new command.

```
$ dapr scheduler list
NAMESPACE  APP ID                                NAME   TARGET  BEGIN                 COUNT  LAST TRIGGER
default    275c7268-9011-4796-8b06-1ed53358eebf  test1  job     2025-09-18T01:06:28Z  170    2025-09-18T01:09:18Z
default    275c7268-9011-4796-8b06-1ed53358eebf  test2  job     2025-09-18T02:06:28Z  0
```

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Adds `dapr scheduler delete` which is a new CLI command to delete jobs
and actor reminders which are stored in scheduler. You can delete
multiple jobs at a time, or all jobs registered in a namespace.
The target namespace is required.

The given name encode the job target type in the string:

```
"job/<app-id>/<job-name>" for jobs
"actorreinder/<actor-type>||<actor-id>||<reminder-name>" for actor reminders
```

```
dapr delete -n foo job/foo/bar
dapr delete -n foo actorreminder/MyActor||1234||reminder1
dapr delete -n foo --delete-all-yes-i-know-what-i-am-doing
```

Signed-off-by: joshvanl <me@joshvanl.dev>
@olitomlinson
Copy link

olitomlinson commented Sep 23, 2025

@JoshVanL Could you addd, a delete all reminders which are related to workflows?

AND a more granular, delete all workflow reminders for a specific App ID <--- seen this ask crop up on Discord a couple of times, when people wish to deccomission an App or workflows get's into a bad state and they want to reset workflows for a specific app.

e.g. dapr scheduler delete -n foo -app-id bar -workflow-only

@alicejgibbons
Copy link

alicejgibbons commented Sep 23, 2025

^ Related: I would love to be able to delete all actor reminders associated to a specific actor ID - not just a specific reminder

@olitomlinson
Copy link

@JoshVanL support delete all reminders by Actor Type? Which would go far to solving this ticket dapr/dapr#6992

@JoshVanL
Copy link
Contributor Author

JoshVanL commented Oct 9, 2025

Closed in favor of #1559

@JoshVanL JoshVanL closed this Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants