jbmorgan / django-arthouse

0 stars 0 forks source link

Movie lookup should happen asynchronously #8

Open jbmorgan opened 11 years ago

jbmorgan commented 11 years ago

Getting movie information from TMDB needs to happen asynchronously, particularly because it involves downloading at least two large image files.

This will require a rew things:

  1. The Movie model should have an enum or boolean to indicate its current status, specifically whether it is being updated.
  2. The work performed in tmdb/movie_for_tmdb_id needs to happen in a background task. I believe django-celery is the go-to tool for this.
  3. It should mark the film as updating when the lookup begins and mark it as normal when it ends.
  4. Make sure everything works while films are updating (especially list/update/detail/delete templates and the admin panel).