Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit c7b5976

Browse files
authored
disalbe webhook calls when mode is api only (#371)
1 parent 22c4cf0 commit c7b5976

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/orchestrator/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use std::sync::Arc;
4141
use tokio::task::JoinSet;
4242
use url::Url;
4343

44-
#[derive(Parser, Clone, Copy, ValueEnum, Debug)]
44+
#[derive(Parser, Clone, Copy, ValueEnum, Debug, PartialEq)]
4545
pub enum ServerMode {
4646
ApiOnly,
4747
ProcessorOnly,
@@ -219,7 +219,7 @@ async fn main() -> Result<()> {
219219

220220
let webhook_sender_store = store_context.clone();
221221
let webhook_plugins_clone = webhook_plugins.clone();
222-
if !webhook_plugins_clone.is_empty() {
222+
if !webhook_plugins_clone.is_empty() && server_mode != ServerMode::ApiOnly {
223223
tasks.spawn(async move {
224224
let mut webhook_sender = MetricsWebhookSender::new(
225225
webhook_sender_store.clone(),

deployment/k8s/orchestrator-chart/templates/orchestrator-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
value: "{{ .root.Values.env.LOG_LEVEL }}"
6161
- name: HOURLY_S3_UPLOAD_LIMIT
6262
value: "{{ .root.Values.env.HOURLY_S3_UPLOAD_LIMIT }}"
63-
{{- if .root.Values.env.WEBHOOK_CONFIGS}}
63+
{{- if .root.Values.env.WEBHOOK_CONFIGS }}
6464
- name: WEBHOOK_CONFIGS
65-
value: "{{ .root.Values.env.WEBHOOK_CONFIGS }}"
65+
value: {{ .root.Values.env.WEBHOOK_CONFIGS | quote }}
6666
{{- end }}
6767
{{- if .root.Values.env.NODE_GROUP_CONFIGS }}
6868
- name: NODE_GROUP_CONFIGS

0 commit comments

Comments
 (0)