-
Notifications
You must be signed in to change notification settings - Fork 209
Adds dapr scheduler delete
#1543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
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>
1c23fd6
to
5080ebc
Compare
@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. |
^ Related: I would love to be able to delete all actor reminders associated to a specific actor ID - not just a specific reminder |
@JoshVanL support delete all reminders by Actor Type? Which would go far to solving this ticket dapr/dapr#6992 |
Closed in favor of #1559 |
Adds
dapr scheduler delete
which is a new CLI command to delete jobsand 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: