feng-tao commented on a change in pull request #4396: [AIRFLOW-3585] - Add
edges to database
URL: https://github.com/apache/airflow/pull/4396#discussion_r259592898
##########
File path: airflow/models/__init__.py
##########
@@ -356,6 +293,9 @@ def process_file(self, filepath, only_if_updated=True,
safe_mode=True):
if filepath is None or not os.path.isfile(filepath):
return found_dags
+ if filepath.endswith(".pyc"):
+ filepath = filepath.rstrip("c")
Review comment:
although I never see .pyc listed at the dag.file_local , but at lease it
needs a comment on what it tries to do.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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