From 4082e97c42f77f97db0269c0454c4b12d8877089 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Thu, 30 Oct 2025 20:27:13 +0000 Subject: warn if running from job machine --- src/main.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index aa62abf..f16a7db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -235,12 +235,23 @@ async fn main() -> Result<()> { } async fn context_from_common(common: &Common) -> Result { - Context::new( + let ctx = Context::new( common.job_id, common.infer_job_id, common.frontend_hostname.clone(), ) - .await + .await?; + + match ctx.node { + ExecutionNode::Machine(_) => { + tracing::warn!( + "executing oar-p2p from a job machine is not currently support, run from the frontend or your own machine" + ); + } + _ => {} + } + + Ok(ctx) } async fn cmd_net_up(args: NetUpArgs) -> Result<()> { -- cgit