jedcunningham commented on issue #45646:
URL: https://github.com/apache/airflow/issues/45646#issuecomment-2614723538

   >     1. I was able to display the bundle name and version in the output as 
shown in the image. Let me know if this aligns with your expectations. You can 
also review the changes in the [draft 
PR.](https://github.com/apache/airflow/pull/45779)
   > 
   > 
   > <img alt="Image" width="714" 
src="https://private-user-images.githubusercontent.com/70703123/405475075-2772b1ff-ea7b-4ea0-902a-e3719dc01962.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzc5NDI5NDEsIm5iZiI6MTczNzk0MjY0MSwicGF0aCI6Ii83MDcwMzEyMy80MDU0NzUwNzUtMjc3MmIxZmYtZWE3Yi00ZWEwLTkwMmEtZTM3MTlkYzAxOTYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTI3VDAxNTA0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlZDFlZGQxNWQ2ZmZlNzViYWMyYzc5OGFiYWM3NTNlOTRjM2M1OWM3NDEyYTljYzg4YTZkZWUxZjZkYjIyNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jrq2T1IAEo6m8pu4hXklLkcZYXEQcfoGvk7TUVdT6m0";>
   
   Yep, exactly!
   
   >     2. I tested this on LocalBundle, but since it doesn’t support 
versions, I wanted to test it on GitBundle. However, I encountered an error. I 
updated the config.yml with the following changes but ran into issues. Could 
you guide me on whether any specific configurations are required?
   
   Without the error message, it's tough to say. There has been a bit of churn 
in GitHook and GitDagBundle recently. If you need a working config, let me know 
and I'll craft one to share.
   
   >     3. As per your suggestion, I attempted to use 
Dagbag(read_dags_from_db=True). While exploring this approach, I tried using 
the collect_dags_from_db function from 
[dagbag](https://github.com/apache/airflow/blob/main/airflow/models/dagbag.py) 
file, It was unable to load any file from the db.
   
   Hmm, in theory, you can just do:
   
   ```
   >>> from airflow.models.dagbag import DagBag
   >>> bag = DagBag(read_dags_from_db=True)
   >>> bag.collect_dags_from_db()
   [2025-01-26T19:00:50.726-0700] {dagbag.py:612} INFO - Filling up the DagBag 
from database
   ...
   >>> bag.dag_ids
   ['hello', 'mapping_always_short', 'ke_image_override']
   ```
   
   Did you get any errors? Or it was just empty?


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