File: func_noerror_celery.py

package info (click to toggle)
pylint-celery 0.3-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 136 kB
  • sloc: python: 63; makefile: 5; sh: 4
file content (13 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Checks that Pylint does not complain about certain aspects of the Celery library
"""
#  pylint: disable=C0111,R0903,W0232

from celery import task

@task(queue='celery')
def test_task(an_arg, another_arg):
    return an_arg + another_arg


TEST_TASK_NON_DECORATOR = task(ignore_results=True)(lambda: 0)