# Artist Services AirFlow Spike

## Setup

Create the environment and install the dependencies:

```shell
python -m venv env
source env/bin/activate
make dev
```

Setup the airflow path:

```shell
export AIRFLOW_HOME=$(pwd)
```

## Usage

Run the web interface and scheduler (in separate terminals):

```shell
airflow webserver -p 8080
```

```shell
airflow scheduler
```

Now you can go to [http://localhost:8080](http://localhost:8080) to see the admin UI.

### Report Generation

Trigger a mock report generation by using the `trigger.py` script:

```shell
python trigger.py
```

This will make a request to the running web server with the appropriate config.
