Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/pypi/tasks.py
Show All 11 Lines | @app.task(name='swh.lister.pypi.tasks.PyPIListerTask', | ||||
base=SWHTask, bind=True) | base=SWHTask, bind=True) | ||||
def pypi_lister(self, **lister_args): | def pypi_lister(self, **lister_args): | ||||
self.log.debug('%s(), lister_args=%s' % ( | self.log.debug('%s(), lister_args=%s' % ( | ||||
self.name, lister_args)) | self.name, lister_args)) | ||||
PyPILister(**lister_args).run() | PyPILister(**lister_args).run() | ||||
self.log.debug('%s OK' % (self.name)) | self.log.debug('%s OK' % (self.name)) | ||||
@app.task(name='swh.lister.pypi.tasks.ping', | |||||
base=SWHTask, bind=True) | |||||
def ping(self): | |||||
self.log.debug(self.name) | |||||
return 'OK' |