Skip to content

Commit

Permalink
[AIRFLOW-6801] Make use of ImportError.timestamp (#7425)
Browse files Browse the repository at this point in the history
(cherry picked from commit cc1bd64)
  • Loading branch information
chrismclennon authored and kaxil committed Mar 17, 2020
1 parent 19c04ec commit 523eaf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/jobs/scheduler_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ def update_import_errors(session, dagbag):
for filename, stacktrace in six.iteritems(dagbag.import_errors):
session.add(errors.ImportError(
filename=filename,
timestamp=timezone.utcnow(),
stacktrace=stacktrace))
session.commit()

Expand Down

0 comments on commit 523eaf1

Please sign in to comment.