This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 261d569d9ec Properly allow variable delete from models (#49234)
261d569d9ec is described below

commit 261d569d9ecf5b555d89ef7ea25c2e2282e62bd2
Author: Amogh Desai <[email protected]>
AuthorDate: Mon Apr 14 23:25:28 2025 +0530

    Properly allow variable delete from models (#49234)
---
 airflow-core/src/airflow/models/variable.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/airflow-core/src/airflow/models/variable.py 
b/airflow-core/src/airflow/models/variable.py
index b5c32904bd7..2bdb58daa3b 100644
--- a/airflow-core/src/airflow/models/variable.py
+++ b/airflow-core/src/airflow/models/variable.py
@@ -327,6 +327,7 @@ class Variable(Base, LoggingMixin):
             TaskSDKVariable.delete(
                 key=key,
             )
+            return 1
 
         ctx: contextlib.AbstractContextManager
         if session is not None:

Reply via email to