aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-03-10 12:15:48 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-03-10 12:15:48 +0100
commit61d87ae501941c3d0c1b8f49f58ff2cbfa54df8b (patch)
tree868a83b91c01438adb9ff848f909d3e3b011ea0b
parenta7299401e8f89f386f6560c23cf33e018b59ccbe (diff)
Remove unused celery task, fix pylint error.
-rw-r--r--app/taskqueue/tasks.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/app/taskqueue/tasks.py b/app/taskqueue/tasks.py
index 4bf64f0..25c6543 100644
--- a/app/taskqueue/tasks.py
+++ b/app/taskqueue/tasks.py
@@ -31,20 +31,6 @@ import utils.report.build
import utils.report.common
-@taskc.app.task(name='send-emails', ignore_result=True)
-def send_emails(job_id):
- """Just a wrapper around the real `send` function.
-
- This is used to provide a Celery-task access to the underlying function.
-
- :param job_id: The job ID to trigger notifications for.
- """
- # send(job_id)
- # XXX: This has been removed since the subscription handler is not used
- # right now and will be completely reworked in the future.
- pass
-
-
@taskc.app.task(name="import-job")
def import_job(json_obj, db_options):
"""Just a wrapper around the real import function.
@@ -165,7 +151,8 @@ def defconfig_bisect_compared_to(doc_id, compare_to, db_options, fields=None):
acks_late=True,
track_started=True,
ignore_result=False)
-def send_boot_report(job, kernel, lab_name, to_addrs, db_options, mail_options):
+def send_boot_report(job,
+ kernel, lab_name, to_addrs, db_options, mail_options):
"""Create the boot report email and send it.
:param job: The job name.