PYTHON · SQLALCHEMY · SQLITE · AIRFLOW
Airflow DAGs
The scheduled jobs that keep the store's data moving: new customers and orders every day, campaign activity and emails, and a weekly campaign report.
| DAG | Owner | Schedule | Task | What it does |
|---|---|---|---|---|
| create_customers | airflow | @daily | PythonOperator create_customers_task | Adds 0 to 10 new customers. |
| create_orders | airflow | @daily | PythonOperator create_orders_task | Adds 0 to 50 new orders. |
| create_customer_interactions | airflow | @daily | PythonOperator generate_random_interactions | Logs 10 to 50 views, clicks and purchases against campaigns. |
| send_campaign_emails | airflow | @daily | PythonOperator send_campaign_emails | Simulates emailing customers for each active campaign. |
| create_marketing_campaign | airflow | @weekly | PythonOperator create_marketing_campaign | Creates 1 to 3 new campaigns, each aimed at a product category. |
| generate_campaign_report | airflow | @weekly | PythonOperator generate_campaign_report | Reports each campaign's interactions over the last 7 days. |
The jobs that keep the store's data moving, listed from the DAG files in airflow/dags/
and styled after Airflow's DAG list. This is not a live Airflow instance.
successfailedBar height is run duration. The square below is the task.
create_customers@daily · last 14 runs · 13 of 14 succeeded
create_orders@daily · last 14 runs · 14 of 14 succeeded
create_customer_interactions@daily · last 14 runs · 13 of 14 succeeded
send_campaign_emails@daily · last 14 runs · 11 of 14 succeeded
create_marketing_campaign@weekly · last 8 runs · 8 of 8 succeeded
generate_campaign_report@weekly · last 8 runs · 8 of 8 succeeded
This run history is made up to show how the jobs would look in Airflow's grid view. The dates, results and durations are generated, not taken from real runs.