Coder Social home page Coder Social logo

pdm's Introduction

To build containers do:

  1. docker-compose up airflow-init
  2. docker-compose up

pdm's People

Contributors

josep-pujol avatar christo-olivier avatar

Watchers

 avatar  avatar

pdm's Issues

Remove SQLAlchemy from `psql_api.py` completely

Remove the use of SQLAlchemy from the psql_api module completely as it is not required at all. psycopg2 is more than capable of handling anything we need to do and will also be more efficient.

Break `get_tweets` into smaller functions

There is currently too many things being done by the get_tweets method of the TwitterClient class. Break it into smaller methods each focusing on only one thing.

E.g.

  1. Fetch tweets and return list of them
  2. Parse tweets if a parse is specified or simply return them if one is not
  3. Method that builds the set of tweet ids and returns them

Check that catching too generic an exception `except Execption` reraises errors otherwise pipelines will fail silently

There are numerous places where exceptions that are too broad are being captured. It prints an error message but the exception is handled and thus the Airflow pipeline will simply run as if everything is normal.

Remove these try catches so that the exceptions raised fail the python code and are logged in the Airflow DAG as an error with the stack trace or reraise them if you wanted to add your own message to the error.

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.