Add a 'ping' task for every lister.

This commit is contained in:
David Douard 2018-12-21 16:34:39 +01:00
parent 2d1f0643ff
commit 0583b0e685
6 changed files with 36 additions and 0 deletions

View file

@ -62,3 +62,10 @@ def npm_incremental_lister(self, **lister_args):
with save_registry_state(lister):
lister.run(min_bound=update_seq_start)
self.log.debug('%s OK' % (self.name))
@app.task(name='swh.lister.npm.tasks.ping',
base=SWHTask, bind=True)
def ping(self):
self.log.debug(self.name)
return 'OK'