mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Remove commented code
This commit is contained in:
parent
4dbe06e99d
commit
63c5a727b8
1
psu
Normal file → Executable file
1
psu
Normal file → Executable file
@ -954,7 +954,6 @@ tasks() {
|
|||||||
filter_include_job_auto_detection=$(if [ "$AUTO_DETECT_JOB" == "true" ]; then echo 'map(select(any(.Spec.RestartPolicy; .Condition == "none")))'; else echo 'map(select(.Spec.ContainerSpec.Labels."job-name"))'; fi)
|
filter_include_job_auto_detection=$(if [ "$AUTO_DETECT_JOB" == "true" ]; then echo 'map(select(any(.Spec.RestartPolicy; .Condition == "none")))'; else echo 'map(select(.Spec.ContainerSpec.Labels."job-name"))'; fi)
|
||||||
# For tasks which run a script then shutdown when it's successfully executed, like 'Job' in Kubernetes
|
# For tasks which run a script then shutdown when it's successfully executed, like 'Job' in Kubernetes
|
||||||
local last_task_created_at
|
local last_task_created_at
|
||||||
# last_task_created_at=$(tasks | jq -jc "$filter_include_job_auto_detection | max_by(.CreatedAt) | select(.CreatedAt) | .CreatedAt")
|
|
||||||
last_task_created_at=$(tasks | jq -jc "max_by(.CreatedAt) | .CreatedAt")
|
last_task_created_at=$(tasks | jq -jc "max_by(.CreatedAt) | .CreatedAt")
|
||||||
local filter_created_at
|
local filter_created_at
|
||||||
filter_created_at="map(select(.CreatedAt >= \"$last_task_created_at\"))"
|
filter_created_at="map(select(.CreatedAt >= \"$last_task_created_at\"))"
|
||||||
|
Loading…
Reference in New Issue
Block a user