HawkFlow.ai apache airflow integration
Project description
HawkFlow.ai apache airflow integration
- First, sign up to hawkflow for free: https://hawkflow.ai/ and get an API key
- Install the pip package
pip install hawkflowairflow
- Add this to the top of your DAG
from hawkflowairflow import hawkflow_callbacks
hawkflow_callbacks.HF_API_KEY = "YOUR_HAWKFLOW_API_KEY_HERE"
- Add these two lines to default_args in your DAG:
default_args={
"on_success_callback": hawkflow_callbacks.hawkflow_success_callback,
"on_execute_callback": hawkflow_callbacks.hawkflow_start_callback
}
All done. Now when your DAG runs, you will see the output in the HawkFlow UI. https://app.hawkflow.ai/login
Known Issues
If you are on an ARM mac and notice that your DAG is just hanging. You may need to put this at the top of your DAG. Airflow is running as a different user on your mac, and the security is blocking outgoing requests.
import os
os.environ['NO_PROXY'] = '*'
More examples
More examples: HawkFlow.ai Python examples
Read the docs: HawkFlow.ai documentation
What is HawkFlow.ai?
HawkFlow.ai is a new monitoring platform that makes it easier than ever to make monitoring part of your development process. Whether you are an Engineer, a Data Scientist, an Analyst, or anyone else that writes code, HawkFlow.ai helps you and your team take ownership of monitoring.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hawkflowairflow-0.0.3.tar.gz
.
File metadata
- Download URL: hawkflowairflow-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3990251c32dca9085c48ea6356873b2b2eaea213dda762f448fd424ac64de1a |
|
MD5 | a6dece381b7fe2571d20100a75a33899 |
|
BLAKE2b-256 | d5c97ee9f39938c86f6b409f11b469c9b780b8d39fd1d54784b18807c5630a5e |
File details
Details for the file hawkflowairflow-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: hawkflowairflow-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7d363f26a7c6bdcb86c8718d181b786f848351b12ac7409270f31c3498489ae |
|
MD5 | 73690f7fa95b9f774d72f9710269a7a7 |
|
BLAKE2b-256 | 14e5add8c75140a84e1abd8f18d8d96660f60e5de2aa99cf85bd32fc355b48aa |