From 26e9f57099657e19bf83c466d8380438bbabfa2c Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 16 Dec 2023 09:31:52 +0100 Subject: [PATCH] agent mode is ee --- backend/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/main.rs b/backend/src/main.rs index 548c969984..5b77fb379c 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -105,6 +105,12 @@ async fn main() -> anyhow::Result<()> { if std::env::var("JOB_TOKEN").is_err() { tracing::warn!("JOB_TOKEN is not passed, hence workers will still create one ephemeral token per job and the DATABASE_URL need to be of a role that can INSERT into the token table") } + + #[cfg(not(feature = "enterprise"))] + { + panic!("Agent mode is only available in the EE, ignoring..."); + } + Mode::Agent } else { if &x != "standalone" {