Ignore connect-proxy tasks

This commit is contained in:
Daniel Berteaud 2023-10-02 00:11:25 +02:00
parent 2c38dc8531
commit b8e536d701
1 changed files with 1 additions and 1 deletions

2
ctctl
View File

@ -778,7 +778,7 @@ ctctl_ls_alloc_of_job(){
ctctl_ls_tasks_of_alloc(){
local ALLOC=$1
local IFS=$'\n'
for TASK in $(nomad alloc status -json "${ALLOC}" | jq -r '.TaskStates | to_entries[] | select(.value.State=="running") | .key'); do
for TASK in $(nomad alloc status -json "${ALLOC}" | jq -r '.TaskStates | to_entries[] | select(.value.State=="running") | select(.key | startswith("connect-proxy") | not) | .key'); do
echo "${TASK}"
done
unset TASK ALLOC