Added a Celery task that fires off the generate method at the appropriate time.