<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shotat_jp</author_name>
  <author_url>https://blog.hatena.ne.jp/shotat_jp/</author_url>
  <blog_title>Memento memo.</blog_title>
  <blog_url>https://shotat.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>起こった事象 以下のようにDAGの生成を別のメソッドに切り出していたらAirflowからDAGが認識されなくなった dag_factory = DAGFactory.get_default() dag = dag_factory.create( dag_id=&quot;example&quot;, ..., ) 原因 DAG file は airflow と dag という文字列を両方含んでいる必要があるらしい option的には dag_discovery_safe_mode airflow.apache.org 回避策 やや強引だが以下のようにAirflowという文字列が含まれるようにすればよい または d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshotat.hateblo.jp%2Fentry%2F2022%2F07%2F06%2F194548&quot; title=&quot;AirflowでDAGが認識されなくてハマった - Memento memo.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-06 19:45:48</published>
  <title>AirflowでDAGが認識されなくてハマった</title>
  <type>rich</type>
  <url>https://shotat.hateblo.jp/entry/2022/07/06/194548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
