You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/26 22:22:19 UTC

[GitHub] [airflow] kaxil edited a comment on issue #10154: DAG_TAG table and foreign key constraint

kaxil edited a comment on issue #10154:
URL: https://github.com/apache/airflow/issues/10154#issuecomment-681154077


   @ozw1z5rd It will return all the Classes/Models that are used in the project
   
   ```python
   In [1]: from airflow import models
   
   In [3]: list(models.base.Base._decl_class_registry.values())
   Out[3]:
   [airflow.models.errors.ImportError,
    <sqlalchemy.ext.declarative.clsregistry._ModuleMarker at 0x7fc660519ad0>,
    airflow.models.dagcode.DagCode,
    airflow.models.dagpickle.DagPickle,
    airflow.models.dagrun.DagRun,
    airflow.models.log.Log,
    airflow.models.pool.Pool,
    airflow.models.taskfail.TaskFail,
    airflow.models.taskreschedule.TaskReschedule,
    airflow.models.variable.Variable,
    airflow.models.xcom.BaseXCom,
    airflow.models.taskinstance.TaskInstance,
    airflow.models.dag.DagTag,
    airflow.models.dag.DagModel,
    airflow.models.connection.Connection,
    airflow.models.renderedtifields.RenderedTaskInstanceFields,
    airflow.models.slamiss.SlaMiss,
    airflow.models.kubernetes.KubeResourceVersion,
    airflow.models.kubernetes.KubeWorkerIdentifier,
    airflow.models.knownevent.KnownEventType,
    airflow.models.knownevent.KnownEvent,
    airflow.models.user.User,
    airflow.models.chart.Chart]
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org