feat: add ability to list global cron tasks

Closes #7732
This commit is contained in:
Jose Diaz-Gonzalez
2025-09-14 04:38:19 -04:00
parent 8b9b658951
commit 7adeee7086
5 changed files with 79 additions and 9 deletions

View File

@@ -112,6 +112,17 @@ dokku cron:list node-js-app --format json
[{"id":"cGhwPT09cGhwIHRlc3QucGhwPT09QGRhaWx5","app":"node-js-app","command":"node index.js","schedule":"@daily"}]
```
To fetch global tasks, use the `--global` flag:
```shell
dokku cron:list --global
```
```
ID Schedule Command
5cruaotm4yzzpnjlsdunblj8qyjp @daily /bin/true
```
#### Executing a cron task on the fly
Cron tasks can be invoked via the `cron:run` command. This command takes an `app` argument and a `cron id` (retrievable from `cron:list` output).