aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-10-30 20:27:13 +0000
committerdiogo464 <[email protected]>2025-10-30 20:27:13 +0000
commit4082e97c42f77f97db0269c0454c4b12d8877089 (patch)
treed3f37bf7448669f818406efc58a75aff86f4b0bf
parent5cdb0c8876c22d8fada79cbc82645d840e0d27eb (diff)
warn if running from job machine
-rw-r--r--src/main.rs15
1 files 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<()> {
235} 235}
236 236
237async fn context_from_common(common: &Common) -> Result<Context> { 237async fn context_from_common(common: &Common) -> Result<Context> {
238 Context::new( 238 let ctx = Context::new(
239 common.job_id, 239 common.job_id,
240 common.infer_job_id, 240 common.infer_job_id,
241 common.frontend_hostname.clone(), 241 common.frontend_hostname.clone(),
242 ) 242 )
243 .await 243 .await?;
244
245 match ctx.node {
246 ExecutionNode::Machine(_) => {
247 tracing::warn!(
248 "executing oar-p2p from a job machine is not currently support, run from the frontend or your own machine"
249 );
250 }
251 _ => {}
252 }
253
254 Ok(ctx)
244} 255}
245 256
246async fn cmd_net_up(args: NetUpArgs) -> Result<()> { 257async fn cmd_net_up(args: NetUpArgs) -> Result<()> {