Remove explicit setting of the task base class
since it's now the default base class in swh-scheduler (>= 0.0.39)
This commit is contained in:
parent
6030cb6315
commit
f46f3e2015
6 changed files with 19 additions and 25 deletions
|
@ -3,13 +3,12 @@
|
|||
# See top-level LICENSE file for more information
|
||||
|
||||
from swh.scheduler.celery_backend.config import app
|
||||
from swh.scheduler.task import SWHTask
|
||||
|
||||
from .lister import DebianLister
|
||||
|
||||
|
||||
@app.task(name='swh.lister.debian.tasks.DebianListerTask',
|
||||
base=SWHTask, bind=True)
|
||||
bind=True)
|
||||
def debian_lister(self, distribution, **lister_args):
|
||||
self.log.debug('%s, lister_args=%s' % (
|
||||
self.name, lister_args))
|
||||
|
@ -18,7 +17,7 @@ def debian_lister(self, distribution, **lister_args):
|
|||
|
||||
|
||||
@app.task(name='swh.lister.debian.tasks.ping',
|
||||
base=SWHTask, bind=True)
|
||||
bind=True)
|
||||
def ping(self):
|
||||
self.log.debug(self.name)
|
||||
return 'OK'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue