From e8725eb2476ce6d29783ca90928268c56bfb12ba Mon Sep 17 00:00:00 2001 From: Antoine Lambert Date: Thu, 28 Jan 2021 16:11:25 +0100 Subject: [PATCH] launchpad/tasks: Fix ping task function name An exception is raised when registering task types in scheduler database otherwise. --- swh/lister/launchpad/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swh/lister/launchpad/tasks.py b/swh/lister/launchpad/tasks.py index a67d365..671e962 100644 --- a/swh/lister/launchpad/tasks.py +++ b/swh/lister/launchpad/tasks.py @@ -9,7 +9,7 @@ from .lister import LaunchpadLister @shared_task(name=__name__ + ".ping") -def ping(): +def _ping(): return "OK"