Skip to content

Companion repo for the "Building an Outbound Reporting Pipeline" blogpost/tutorial. Aug 2023

Notifications You must be signed in to change notification settings

dagster-io/dagster-email-report

 
 

Repository files navigation

User Report

This is a sample project built on Dagster and scaffolded with dagster project scaffold.

It demonstrates how to create a Dagster workflow that sends user emails with user-specific chart assets.

Getting started

First, install your Dagster code location as a Python package. By using the --editable flag, pip will install your Python package in "editable mode" so that as you develop, local code changes will automatically apply.

pip install -e ".[dev]"

Create the test database and install the sample data

python database.py
python sample_data.py

Then, start the Dagster UI web server:

dagster dev

Open http://localhost:3000 with your browser to see the project.

You can start writing assets in user_report/assets.py. The assets are automatically loaded into the Dagster code location as you define them.

Development

Adding new Python dependencies

You can specify new Python dependencies in setup.py.

Unit testing

Tests are in the user_report_tests directory and you can run tests using pytest:

pytest user_report_tests

Schedules and sensors

If you want to enable Dagster Schedules or Sensors for your jobs, the Dagster Daemon process must be running. This is done automatically when you run dagster dev.

Once your Dagster Daemon is running, you can start turning on schedules and sensors for your jobs.

Deploy on Dagster Cloud

The easiest way to deploy your Dagster project is to use Dagster Cloud.

Check out the Dagster Cloud Documentation to learn more.

About

Companion repo for the "Building an Outbound Reporting Pipeline" blogpost/tutorial. Aug 2023

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%