Skip to content

Commit

Permalink
Update anomaly_detection.py
Browse files Browse the repository at this point in the history
insight scheduler None bug fix
  • Loading branch information
kyuengmanKim authored Nov 14, 2024
1 parent 29f0896 commit f151338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/scheduler/airflow-home/dags/anomaly_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def filter_records_to_execute(records):

for record in records:
last_execution = record['LAST_EXECUTION']
if last_execution == 'NaT':
if last_execution == 'None' or last_execution == 'NaT':
record['LAST_EXECUTION'] = pd.Timestamp('1970-01-01')
else:
record['LAST_EXECUTION'] = pd.to_datetime(last_execution)
Expand Down

0 comments on commit f151338

Please sign in to comment.