truestuff/get-queue.sh

6 lines
238 B
Bash
Executable File

#! /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])"'