File: celery.py

package info (click to toggle)
lava 2026.01-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 30,796 kB
  • sloc: python: 82,790; javascript: 16,658; sh: 1,364; makefile: 335
file content (16 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (C) 2020-present Linaro Limited
#
# Author: Remi Duraffort <remi.duraffort@linaro.org>
#
# SPDX-License-Identifier: GPL-2.0-or-later

import os

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lava_server.settings.prod")

app = Celery("lava_server")
# Import from django settings, prefixed with CELERY_
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()