mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-05 22:56:20 +01:00
Specify short names for service tasks (#682)
This commit is contained in:
@@ -37,7 +37,7 @@ class Phpbb3Tasks:
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
@app.task(bind=True)
|
||||
@app.task(bind=True, name="phpbb3.update_groups")
|
||||
def update_groups(self, pk):
|
||||
user = User.objects.get(pk=pk)
|
||||
logger.debug("Updating phpbb3 groups for user %s" % user)
|
||||
@@ -58,7 +58,7 @@ class Phpbb3Tasks:
|
||||
logger.debug("User does not have a Phpbb3 account")
|
||||
|
||||
@staticmethod
|
||||
@app.task
|
||||
@app.task(name="phpbb3.update_all_groups")
|
||||
def update_all_groups():
|
||||
logger.debug("Updating ALL phpbb3 groups")
|
||||
for user in Phpbb3User.objects.exclude(username__exact=''):
|
||||
|
||||
Reference in New Issue
Block a user