truestuff/get-queue.sh

6 lines
238 B
Bash
Raw Normal View History

2023-07-12 03:18:28 +00:00
#! /usr/bin/env bash
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