Skip to main content

HawkFlow.ai apache airflow integration

Project description

HawkFLow.ai

HawkFlow.ai apache airflow integration

  1. First, sign up to hawkflow for free: https://hawkflow.ai/ and get an API key
  2. Install the pip package pip install hawkflowairflow
  3. Add this to the top of your DAG
from hawkflowairflow import hawkflow_callbacks

hawkflow_callbacks.HF_API_KEY = "YOUR_HAWKFLOW_API_KEY_HERE"
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hawkflowairflow-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

hawkflowairflow-0.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for hawkflowairflow-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a3990251c32dca9085c48ea6356873b2b2eaea213dda762f448fd424ac64de1a
MD5 a6dece381b7fe2571d20100a75a33899
BLAKE2b-256 d5c97ee9f39938c86f6b409f11b469c9b780b8d39fd1d54784b18807c5630a5e

See more details on using hashes here.

File details

Details for the file hawkflowairflow-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hawkflowairflow-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7d363f26a7c6bdcb86c8718d181b786f848351b12ac7409270f31c3498489ae
MD5 73690f7fa95b9f774d72f9710269a7a7
BLAKE2b-256 14e5add8c75140a84e1abd8f18d8d96660f60e5de2aa99cf85bd32fc355b48aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page