Remove debug logging from tasks' code
since this is now handled by the SWHTask itself.
This commit is contained in:
parent
6957f3c435
commit
f670de298f
6 changed files with 36 additions and 98 deletions
|
@ -7,17 +7,11 @@ from swh.scheduler.celery_backend.config import app
|
|||
from .lister import DebianLister
|
||||
|
||||
|
||||
@app.task(name='swh.lister.debian.tasks.DebianListerTask',
|
||||
bind=True)
|
||||
def debian_lister(self, distribution, **lister_args):
|
||||
self.log.debug('%s, lister_args=%s' % (
|
||||
self.name, lister_args))
|
||||
@app.task(name=__name__ + '.DebianListerTask')
|
||||
def debian_lister(distribution, **lister_args):
|
||||
DebianLister(**lister_args).run(distribution)
|
||||
self.log.debug('%s OK' % (self.name))
|
||||
|
||||
|
||||
@app.task(name='swh.lister.debian.tasks.ping',
|
||||
bind=True)
|
||||
def ping(self):
|
||||
self.log.debug(self.name)
|
||||
@app.task(name=__name__ + '.ping')
|
||||
def ping():
|
||||
return 'OK'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue