kaxil commented on code in PR #57459:
URL: https://github.com/apache/airflow/pull/57459#discussion_r2471419723


##########
airflow-core/src/airflow/jobs/dag_processor_job_runner.py:
##########
@@ -56,6 +57,9 @@ def __init__(
         )
 
     def _execute(self) -> int | None:
+        # Mark this as a server context for secrets backend detection
+        os.environ["_AIRFLOW_PROCESS_CONTEXT"] = "server"
+

Review Comment:
   >The dag_processor is a server-side component that needs database access
   for connection retrieval, similar to the scheduler and API server.
   
   That isn't true. Dag Processor is a client side component -- since it runs 
user code



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to