From aef6cd3a8a8bd7f865d52dfd323c83dfeb1ee1e9 Mon Sep 17 00:00:00 2001 From: Justin Law Date: Fri, 4 Oct 2024 12:02:53 -0400 Subject: [PATCH] cyclic loop workaround --- tasks/create.yaml | 19 +++++++++++++++++++ tasks/setup.yaml | 9 ++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/tasks/create.yaml b/tasks/create.yaml index e4779ca3a..6b7d0d8a8 100644 --- a/tasks/create.yaml +++ b/tasks/create.yaml @@ -11,6 +11,25 @@ includes: - utils: ./utils.yaml tasks: + ############ + # WORKAROUND + ############ + - name: log + description: "LeapfrogAI logger" + inputs: + log: + description: "Content to be logged to the CLI" + required: true + enable: + description: "Whether to enable or disable the logging" + default: "true" + required: false + actions: + - task: utils:log + with: + log: ${{ .inputs.log }} + enable: ${{ .inputs.enable }} + ######### # UTILITY ######### diff --git a/tasks/setup.yaml b/tasks/setup.yaml index 784d857a5..b0b9f72f8 100644 --- a/tasks/setup.yaml +++ b/tasks/setup.yaml @@ -9,7 +9,6 @@ includes: # LEAPFROGAI-SPECIFIC TASKS ########################### - create: ./create.yaml - - utils: ./utils.yaml tasks: - name: e2e-test-user @@ -20,7 +19,7 @@ tasks: - name: k3d-cpu-cluster-slim description: "Creates a UDS K3d cluster with slim UDS Core and CPU-only Capability" actions: - - task: utils:log + - task: create:log with: log: "Creating a UDS K3d cluster with slim UDS Core and CPU-only Capability" - task: setup-common:k3d-test-cluster @@ -28,7 +27,7 @@ tasks: - name: k3d-gpu-cluster-slim description: "Creates a UDS K3d cluster with slim UDS Core and NVIDIA GPU Capability" actions: - - task: utils:log + - task: create:log with: log: "Creating a UDS K3d cluster with slim UDS Core and NVIDIA GPU Capability" - task: create:k3d-gpu-image @@ -42,7 +41,7 @@ tasks: - name: k3d-cpu-cluster-full description: "Creates a UDS K3d cluster with full UDS Core and CPU-only Capability" actions: - - task: utils:log + - task: create:log with: log: "Creating a UDS K3d cluster with full UDS Core and CPU-only Capability" - task: setup-common:k3d-full-cluster @@ -54,7 +53,7 @@ tasks: - name: k3d-gpu-cluster-full description: "Creates a UDS K3d cluster with full UDS Core and NVIDIA GPU Capability" actions: - - task: utils:log + - task: create:log with: log: "Creating a UDS K3d cluster with full UDS Core and NVIDIA GPU Capability" - task: create:k3d-gpu-image