Launchpad: rename task name to match conventions
Related to T2358
This commit is contained in:
parent
5a5b7ef70b
commit
74ca3d0b87
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue