Launchpad: rename task name to match conventions

Related to T2358
This commit is contained in:
Vincent SELLIER 2020-09-08 14:21:47 +02:00
parent 5a5b7ef70b
commit 74ca3d0b87
No known key found for this signature in database
GPG key ID: 3F13C434EADAD17D

View file

@ -10,7 +10,7 @@ from .lister import LaunchpadLister
@shared_task(name=__name__ + ".IncrementalLaunchpadLister")
def launchpad_lister_incremental(threshold, **lister_args):
def list_launchpad_incremental(threshold, **lister_args):
"""Incremental update
"""
lister = LaunchpadLister(**lister_args)
@ -22,7 +22,7 @@ def list_launchpad_full(self, **lister_args):
"""Full update of Launchpad
"""
self.log.debug("%s OK, spawned full task" % (self.name))
return launchpad_lister_incremental(threshold=None, **lister_args)
return list_launchpad_incremental(threshold=None, **lister_args)
@shared_task(name=__name__ + ".NewLaunchpadLister", bind=True)
@ -32,4 +32,4 @@ def list_launchpad_new(self, **lister_args):
lister = LaunchpadLister(**lister_args)
threshold = lister.db_last_threshold()
self.log.debug("%s OK, spawned new task" % (self.name))
return launchpad_lister_incremental(threshold=threshold, **lister_args)
return list_launchpad_incremental(threshold=threshold, **lister_args)