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


##########
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 parent manager runs as a Job with database access (looks server-side)
   
   That's only temporary though until 
[AIP-92](https://cwiki.apache.org/confluence/display/AIRFLOW/%5BWIP%5D+AIP-92+Isolate+DAG+processor%2C+Callback+processor%2C+and+Triggerer+from+core+services).
   
   If we do keep this as solution, we should add a TODO that this is a temp 
solution and we do proper test for it



-- 
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