Skip to content

Commit 8b4022f

Browse files
authored
Merge pull request #114 from samply/feature/healthcheck
focus healthcheck
2 parents bded496 + 0ceda2e commit 8b4022f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ async fn process_task(
148148
execute: true,
149149
});
150150

151+
if metadata.project == "focus-healthcheck" {
152+
return Ok(beam::beam_result::succeeded(
153+
CONFIG.beam_app_id_long.clone(),
154+
vec![task.from.clone()],
155+
task.id,
156+
"healthy".into()
157+
));
158+
}
159+
151160
if metadata.project == "exporter" {
152161
let body = &task.body;
153162
return Ok(run_exporter_query(task, body, metadata.execute).await)?;

0 commit comments

Comments
 (0)