Skip to content

Commit

Permalink
Merge pull request #114 from samply/feature/healthcheck
Browse files Browse the repository at this point in the history
focus healthcheck
  • Loading branch information
enola-dkfz authored Feb 14, 2024
2 parents bded496 + 0ceda2e commit 8b4022f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 8b4022f

Please sign in to comment.