2023-07-12 03:18:28 +00:00
|
|
|
#! /usr/bin/env bash
|
2023-10-25 14:13:14 +00:00
|
|
|
IGNORE_CRON=${1:-$IGNORE_CRON}
|
|
|
|
CRON_TEST="${IGNORE_CRON:+and (.method != \"cronjob.run\")}"
|
|
|
|
midclt call core.get_jobs | jq -r '.[] | select( (.time_finished == null) '"${CRON_TEST}"' ) | "\(.id) - \(.arguments[0])"'
|
2023-07-12 03:18:28 +00:00
|
|
|
|