From 0ceda2ec5d05fc1b7f703bb429549c92b58a071f Mon Sep 17 00:00:00 2001 From: Enola Knezevic Date: Wed, 14 Feb 2024 08:57:35 +0100 Subject: [PATCH] focus healthcheck --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index 5b2f893..4f93d7f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -148,6 +148,15 @@ async fn process_task( execute: true, }); + if metadata.project == "focus-healthcheck" { + return Ok(beam::beam_result::succeeded( + CONFIG.beam_app_id_long.clone(), + vec![task.from.clone()], + task.id, + "healthy".into() + )); + } + if metadata.project == "exporter" { let body = &task.body; return Ok(run_exporter_query(task, body, metadata.execute).await)?;