From f18085bc9b7f245daa2ce536361687b103cec48f Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Mon, 1 Dec 2025 16:39:20 +0100 Subject: [PATCH] clearer comment --- backend/windmill-common/src/jobs.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/windmill-common/src/jobs.rs b/backend/windmill-common/src/jobs.rs index ae344efd1f..2556bcdafb 100644 --- a/backend/windmill-common/src/jobs.rs +++ b/backend/windmill-common/src/jobs.rs @@ -883,7 +883,8 @@ pub struct WorkerInternalServerInlineUtils { >, } // To run a script inline, bypassing the db and job queue, windmill-api uses these functions. -// windmill-worker sets these functions when it starts up. -// The api cannot call the worker functions directly because they are independent crates +// They should only be called by the internal server of a worker. +// main() sets the global on startup. +// The server cannot call the worker functions directly because they are independent crates pub static WORKER_INTERNAL_SERVER_INLINE_UTILS: OnceCell = OnceCell::new();