mik-laj commented on a change in pull request #7484: [AIRFLOW-6864][depends on 
6863] Make airflow/jobs pylint compatible
URL: https://github.com/apache/airflow/pull/7484#discussion_r383021019
 
 

 ##########
 File path: airflow/models/dagrun.py
 ##########
 @@ -31,21 +31,26 @@
 from airflow.ti_deps.dep_context import DepContext
 from airflow.ti_deps.dependencies import SCHEDULEABLE_STATES
 from airflow.utils import timezone
-from airflow.utils.jobs_helpers import BACKFILL_JOB_PREFIX
 from airflow.utils.log.logging_mixin import LoggingMixin
 from airflow.utils.session import provide_session
 from airflow.utils.sqlalchemy import UtcDateTime
 from airflow.utils.state import State
 
 
+class DagRunType:
+    """Class with DagRun types"""
+    BACKFILL_JOB = "backfill_"
+    SCHEDULED = "scheduled__"
 
 Review comment:
   If you move the "DagRunType" class to a separate file, the problem should 
disappear.  Now even more cyclical imports have been created, because many 
classes depend on DagRun.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to