Git Product home page Git Product logo

kelvin's Introduction

kelvin

Data pipeline for Kelvin.education student pulse surveys

Dependencies:

Getting Started

Setup Environment

  1. Clone this repo
git clone https://github.com/kippnorcal/kelvin.git
  1. Create .env file with project secrets

The environment file should fit the following template:

# Database variables
DB_SERVER=
DB=
DB_USER=
DB_PWD=
DB_SCHEMA=

# Mailgun & email notification variables
ENABLE_MAILER=1
MG_API_KEY=
MG_API_URL=
MG_DOMAIN=
SENDER_EMAIL=
RECIPIENT_EMAIL=

# Enable Debug Logging (Optional)
DEBUG=1

Running the job

$ docker build -t kelvin .

# Running job based on most recent "responded_at" date in table
$ docker run --rm -it kelvin

# Running a full truncate and reload of the data
$ docker run --rm -it kelvin --truncate-reload

# Run in debug mode
$ docker run --rm -it kelvin --debug

# Useful for printing files to local directory
$ docker run --rm -it -v ${PWD}:/code/ kelvin

Troubleshooting and maintenance

Scheduling

The job should be scheduled to run once a week because Kelvin Pulse surveys do not close more frequently than weekly. If this frequency changes, then the time window filter in Survey_factResponse.sql should also be updated.

Re-running

We are not comparing to existing records due to performance challenges. If the job needs to be rerun, you should delete any survey dim and fact data associated with the last week - do this directly in the database. If you don't do this, then there will be duplicates.

Maintenance

  • No annual maintenance is required
  • This connector can be paused over the summer and restarted when the first Pulse survey opens

kelvin's People

Contributors

dchess avatar imark3000 avatar nbwiener avatar susanxiong avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.