diff options
author | Aric Gardner <agardner@linuxfoundation.org> | 2019-10-04 15:15:47 -0400 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2019-10-08 14:39:30 -0400 |
commit | 0a29cd3221d8d4085452e90569e2ed32a04e380d (patch) | |
tree | ff3bd1bcbbf12661e0d5f5b9a42d48151df3e224 /src/pharos_dashboard/celery.py | |
parent | e442e6630de110ff03ac7ceb4c1cf10c42c921cc (diff) |
Rename pharos to laas
related to change:
https://gerrit.opnfv.org/gerrit/c/releng/+/68161
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I4985eb116fd2c214f3639eb991f27b5d75b5ab7c
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/pharos_dashboard/celery.py')
-rw-r--r-- | src/pharos_dashboard/celery.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/pharos_dashboard/celery.py b/src/pharos_dashboard/celery.py deleted file mode 100644 index 2a44a3d..0000000 --- a/src/pharos_dashboard/celery.py +++ /dev/null @@ -1,30 +0,0 @@ -############################################################################## -# Copyright (c) 2016 Max Breitenfeldt and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - - -import os - -from celery import Celery - -# set the default Django settings module for the 'celery' program. -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pharos_dashboard.settings') - -from django.conf import settings # noqa - -app = Celery('pharos_dashboard') - -# Using a string here means the worker will not have to -# pickle the object when using Windows. -app.config_from_object('django.conf:settings') -app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) - - -@app.task(bind=True) -def debug_task(self): - print('Request: {0!r}'.format(self.request)) |