agent mode is ee

This commit is contained in:
Ruben Fiszel
2023-12-16 09:31:52 +01:00
parent 0cc19b9f8c
commit 26e9f57099
+6
View File
@@ -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" {