Skip to content

Enhancing CLI commands with new sub commands #1355

@yottahmd

Description

@yottahmd

We would like to enhance the CLI with new sub commands includes:

  • delete <dag_name>
  • ps [-d <dag_name>] [-r <run_id>]
  • history [-d <dag_name>]
  • delete-history <dag_name> [--older-than-days <n>]

Feedback & ideas from @ghansham

This is still a rough idea, so anyone feel free to suggest if there's more ideas or thoughts.


Updated spec

rm <options> <dag_name>
options can be:
-h: delete history
-d: delete dag yaml
-t: older than e.g. 10d (10 days), 24h (24 hours), etc. (default value can be globally configured and shown here)
-f: forced removal without interactive (default: false)
-i: interactive (default: true)

ps [-d <dag_name>] [-r <run_id>]

ls <options> <dagname pattern>
-n: next Run for cron jobs
-h: run history
-l: last run
-t: sorted by last run
-r: reverse

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions