From ea70b7a7db42d51fa7f22f3dcb6d2aca6d8a795d Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 26 Apr 2022 15:18:26 +0300 Subject: Fix issues caught processing the jobs * Create and push the application context for the worker functions * Fix the update of meta fields --- wsgi.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'wsgi.py') diff --git a/wsgi.py b/wsgi.py index be8207d..baf6ce5 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,18 +1,6 @@ """Run the application""" -import os - -from qc_app import create_app - -def instance_path(): - """Retrieve the `instance_path`. Raise an exception if not defined.""" - path = os.getenv("QCAPP_INSTANCE_PATH", None) - if path is None: - raise Exception(( - "Configuration Error: Set the `QCAPP_INSTANCE_PATH` environment " - "variable.")) - - return path +from qc_app import create_app, instance_path app = create_app(instance_path()) -- cgit v1.2.3