-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from epoch8/elephantum/issue108
Fix #108
- Loading branch information
Showing
16 changed files
with
110 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ build/ | |
.venv/ | ||
.mypy_cache/ | ||
pythonenv*/ | ||
.venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
webserver_config.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[core] | ||
sql_alchemy_conn = postgresql://airflow:airflow@localhost/airflow | ||
load_examples = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "3" | ||
|
||
services: | ||
|
||
postgres: | ||
image: "postgres:9.6" | ||
container_name: "postgres" | ||
environment: | ||
- POSTGRES_USER=airflow | ||
- POSTGRES_PASSWORD=airflow | ||
- POSTGRES_DB=airflow | ||
ports: | ||
- "5432:5432" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import os | ||
import sys | ||
import requests | ||
from requests.exceptions import ConnectionError | ||
import time | ||
|
||
AIRFLOW_BASE_URL = os.environ.get("AIRFLOW_BASE_URL", "http://localhost:8080") | ||
HEALTH_ENDPOINT = f"{AIRFLOW_BASE_URL}/health" | ||
METRICS_ENDPOINT = f"{AIRFLOW_BASE_URL}/admin/metrics/" | ||
|
||
for i in range(120): | ||
try: | ||
res = requests.get(HEALTH_ENDPOINT) | ||
if res.status_code == 200: | ||
break | ||
except ConnectionError: | ||
pass | ||
|
||
time.sleep(1) | ||
else: | ||
print("Airflow not ready after 120 sec") | ||
sys.exit(1) | ||
|
||
res = requests.get(METRICS_ENDPOINT) | ||
if res.status_code != 200: | ||
print("Metrics endpoint status is not 200") | ||
print(res) | ||
print(res.text) | ||
|
||
sys.exit(1) | ||
|
||
print(res.text) |
This file was deleted.
Oops, something went wrong.