Skip to content

Commit

Permalink
Merge pull request #33 from andrewm4894/develop
Browse files Browse the repository at this point in the history
cleanup some stuff
  • Loading branch information
andrewm4894 authored Jun 17, 2023
2 parents 2fd89cf + 3622ca8 commit c586df4
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion .astro-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ operators:
- module: airflow_anomaly_detection.operators.bigquery_metric_batch_train_operator.BigQueryMetricBatchScoreOperator
- module: airflow_anomaly_detection.operators.bigquery_metric_batch_alert_operator.BigQueryMetricBatchAlertOperator
- module: airflow_anomaly_detection.operators.metric_batch_alert_operator.MetricBatchEmailNotifyOperator

2 changes: 1 addition & 1 deletion .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ SENDGRID_MAIL_FROM=<your email>
SENDGRID_API_KEY=<your key>
AIRFLOW_FAILURE_EMAILS=<your email>
AIRFLOW_ALERT_EMAILS=<your email>
AIRFLOW_AD_GCS_MODEL_BUCKET=<your bucket>
AIRFLOW_AD_GCS_MODEL_BUCKET=<your bucket>
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM apache/airflow:2.5.0
FROM apache/airflow:2.6.2

COPY requirements.txt /
RUN pip install --no-cache-dir -r /requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ alert_window_last_n: 1 # only alert if anomalies fall within the last n records.
alert_subject_emoji: '🔥' # emoji to use in alert emails.
alert_metric_last_updated_hours_ago_max: 24 # max number of hours ago the metric was last updated to include in alerting, otherwise ignore.
alert_metric_name_n_observations_min: 14 # min number of observations a metric must have to be considered for alerting.
alert_airflow_fail_on_alert: False # whether to fail the alerting dag if an alert is triggered.
alert_airflow_fail_on_alert: False # whether to fail the alerting dag if an alert is triggered.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ alert_status_threshold: 0.8
alert_max_n: 30
alert_max_n_days_ago: 30
alert_window_last_n: 1
alert_metric_last_updated_hours_ago_max: 24
alert_metric_last_updated_hours_ago_max: 24
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ alert_status_threshold: 0.8
alert_max_n: 72
alert_max_n_days_ago: 7
alert_window_last_n: 1
alert_metric_last_updated_hours_ago_max: 24
alert_metric_last_updated_hours_ago_max: 24
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@ services:
condition: service_completed_successfully

volumes:
postgres-db-volume:
postgres-db-volume:
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests"
]
]
Empty file removed tests/__init__.py
Empty file.
Empty file removed tests/operators/__init__.py
Empty file.

0 comments on commit c586df4

Please sign in to comment.