#!/usr/bin/env python from flask import Flask # import prometheus before any other code. If gds_metrics is imported first it will write a prometheus file to disk # that will never be read from (since we don't have prometheus celery stats). If prometheus is imported first, # prometheus will simply store the metrics in memory import prometheus_client # noqa # notify_celery is referenced from manifest_delivery_base.yml, and cannot be removed from app import notify_celery, create_app # noqa application = Flask('delivery') create_app(application) application.app_context().push()