Code Monkey home page Code Monkey logo

killington's People

Contributors

massover avatar

Stargazers

 avatar

Watchers

 avatar  avatar

killington's Issues

Remove Lottery.processed

Instead we can get the information we need from the count of enetered users.

Also have to update the ActiveLotterManager and change uses of Lottery.active_objects.all(). Instead uses should query by users that have show subscriptions to that have active lotteries that they have not been entered in.

Better logging

  1. Pass kwargs via extra params, eg. sentry docs

  2. Make it easy to debug directly from sentry, instead of relying on paper trail

  3. Move the enter_lottery HTML response to another place(possibly s3 with links for easy access?)

  4. Use celery task id as identifier for easy log searching.

Add user api endpoint

Given I am an oauth2 authenticated client
When I make a request to the user endpoint by SES email
Then I should be able to get the user's real email

Sentry broken when using CELERY_WORKER_MAX_TASKS_PER_CHILD = 1

https://docs.sentry.io/clients/python/transports/#sync
getsentry/raven-python#881

Raven does not send exceptions/logs with async transport mode when CELERY_WORKER_MAX_TASKS_PER_CHILD = 1. Sync HttpTransport fixes it and works fine, but it's
obviously at the cost of being sync. This should be removed and set back to the default if it gets fixed:

# settings/base.py

from raven.transport import HTTPTransport
RAVEN_CONFIG = {
    'transport': HTTPTransport
}

Flood emails

  • Upon start send an email
  • Upon start add task to queue for failure email at end_time + 10 minutes(to figure out exact time later)
  • Add a success field to the flood
  • Add api for Flood to post success = True
  • Add api for getting flood_id, probably from SESViewSet
  • Add failure email task which queries a flood, checks if it's a success, and emails if it was not a success.

... or a human can do it

Update celery beat schedule

run_shows_spider must be run before lottery processing tasks can run, so let's run it at the first minute of every hour

run_shows_spider at minute=1, hour='*'

Confirm how long the task usually takes using logs and then kick off the lottery processing a little after.

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.