ambika-garg commented on issue #45646:
URL: https://github.com/apache/airflow/issues/45646#issuecomment-2617121312
> 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?
Hey @jedcunningham , I get the following error upon trying it.
<img width="951" alt="Image"
src="https://github.com/user-attachments/assets/d17d782f-6b4f-40b9-b23d-cba5a2e9aebb"
/>
--
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]