ffinfo commented on a change in pull request #4396: [AIRFLOW-3585] - Add edges
to database
URL: https://github.com/apache/airflow/pull/4396#discussion_r257113381
##########
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:
Sometimes I see that in the database the .pyc file is in the database
instead of the .py file. This gives problems when using this field activity to
reparse the dag file
----------------------------------------------------------------
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