Finish porting the workers over to apscheduler 3.0
This commit is contained in:
parent
09917ff062
commit
0aa6e92b02
3 changed files with 16 additions and 36 deletions
7
app.py
7
app.py
|
@ -17,7 +17,6 @@ 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
|
||||
|
@ -52,7 +51,10 @@ else:
|
|||
app.config.update(environ_config)
|
||||
|
||||
logger.debug('Applying license config from: %s', LICENSE_FILENAME)
|
||||
app.config.update(load_license(LICENSE_FILENAME))
|
||||
try:
|
||||
app.config.update(load_license(LICENSE_FILENAME))
|
||||
except IOError:
|
||||
raise RuntimeError('No license file found, please check your configuration')
|
||||
|
||||
if app.config.get('LICENSE_EXPIRATION', datetime.min) < datetime.utcnow():
|
||||
raise RuntimeError('License has expired, please contact support@quay.io')
|
||||
|
@ -71,7 +73,6 @@ sentry = Sentry(app)
|
|||
build_logs = BuildLogs(app)
|
||||
queue_metrics = QueueMetrics(app)
|
||||
authentication = UserAuthentication(app)
|
||||
# expiration = Expiration(app)
|
||||
userevents = UserEventsBuilderModule(app)
|
||||
|
||||
tf = app.config['DB_TRANSACTION_FACTORY']
|
||||
|
|
Reference in a new issue