ashb 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_r382925965
##########
File path: airflow/utils/db.py
##########
@@ -23,16 +23,18 @@
from airflow import settings
from airflow.configuration import conf
# noinspection PyUnresolvedReferences
-from airflow.jobs.base_job import BaseJob # noqa: F401 # pylint:
disable=unused-import
-# noinspection PyUnresolvedReferences
from airflow.models import ( # noqa: F401 # pylint: disable=unused-import
DAG, XCOM_RETURN_KEY, BaseOperator, BaseOperatorLink, Connection, DagBag,
DagModel, DagPickle, DagRun,
DagTag, Log, Pool, SkipMixin, SlaMiss, TaskFail, TaskInstance,
TaskReschedule, Variable, XCom,
)
# We need to add this model manually to get reset working well
# noinspection PyUnresolvedReferences
from airflow.models.serialized_dag import SerializedDagModel # noqa: F401 #
pylint: disable=unused-import
-from airflow.utils.session import create_session, provide_session # noqa #
pylint: disable=unused-import
+# noinspection PyUnresolvedReferences
+from airflow.models.sqla_models import ( # noqa: F401 # pylint:
disable=unused-import
+ BackfillJob, BaseJob, LocalTaskJob, SchedulerJob,
Review comment:
(I think. Since they are all stored in the "jobs" table the other classes
don't affect the table structure in any way)
----------------------------------------------------------------
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