Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/debian/tasks.py
Show All 9 Lines | |||||
@app.task(name='swh.lister.debian.tasks.DebianListerTask', | @app.task(name='swh.lister.debian.tasks.DebianListerTask', | ||||
base=SWHTask, bind=True) | base=SWHTask, bind=True) | ||||
def debian_lister(self, distribution, **lister_args): | def debian_lister(self, distribution, **lister_args): | ||||
self.log.debug('%s, lister_args=%s' % ( | self.log.debug('%s, lister_args=%s' % ( | ||||
self.name, lister_args)) | self.name, lister_args)) | ||||
DebianLister(**lister_args).run(distribution) | DebianLister(**lister_args).run(distribution) | ||||
self.log.debug('%s OK' % (self.name)) | self.log.debug('%s OK' % (self.name)) | ||||
@app.task(name='swh.lister.debian.tasks.ping', | |||||
base=SWHTask, bind=True) | |||||
def ping(self): | |||||
self.log.debug(self.name) | |||||
return 'OK' |