Add a module which will create notifications for all users when the license is at its expiration period, and terminate the process when the license expires.

This commit is contained in:
Jake Moshenko 2014-05-29 11:24:10 -04:00
parent 0683f2657e
commit 0ba4201020
8 changed files with 120 additions and 18 deletions

2
app.py
View file

@ -16,6 +16,7 @@ from data.users import UserAuthentication
from util.analytics import Analytics
from util.exceptionlog import Sentry
from util.queuemetrics import QueueMetrics
from util.expiration import Expiration
from data.billing import Billing
from data.buildlogs import BuildLogs
from data.queue import WorkQueue
@ -64,6 +65,7 @@ sentry = Sentry(app)
build_logs = BuildLogs(app)
queue_metrics = QueueMetrics(app)
authentication = UserAuthentication(app)
expiration = Expiration(app)
tf = app.config['DB_TRANSACTION_FACTORY']
image_diff_queue = WorkQueue(app.config['DIFFS_QUEUE_NAME'], tf)