Skip to content

jteh-ml/airflow_snl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Usage

To get started with the code examples, start Airflow with Docker Compose with the following command:

docker-compose up -d

The webserver initializes a few things, so wait for a few seconds, and you should be able to access the Airflow webserver at http://localhost:8080.

To stop running the examples, run the following command:

docker-compose down -v

Intro to Airflow

Let's build a basic pipeline to fetch information about rocket launches, save them locally and then notify you when the task is complete.

  1. Use The Space Devs API, with the url, https://ll.thespacedevs.com/2.0.0/launch/upcoming/ will help you get all the data you need.
  2. Within the Docker container save the data to the postgres database or to a tmp file. You could save the images locally or to the database.
  3. Send a basic message in the form of a bash command to notify you about the end of the pipeline.

Improvements

If you have the time on your own try doing the following:

  1. Save the data to an S3 bucket
  2. Send notifications using email or slack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published