Correct discourse group sync task calling.

This commit is contained in:
Adarnof 2016-12-20 01:20:31 +00:00
parent 8582584fd5
commit ce35e72e44
2 changed files with 0 additions and 2 deletions

View File

@ -21,7 +21,6 @@ djcelery.setup_loader()
# Celery configuration # Celery configuration
BROKER_URL = 'redis://localhost:6379/0' BROKER_URL = 'redis://localhost:6379/0'
CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler" CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"
BROKER_POOL_LIMIT = 0
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

View File

@ -489,7 +489,6 @@ def update_all_discord_nicknames():
@task(bind=True) @task(bind=True)
@only_one(key="Discourse", timeout=60*5)
def update_discourse_groups(self, pk): def update_discourse_groups(self, pk):
user = User.objects.get(pk=pk) user = User.objects.get(pk=pk)
logger.debug("Updating discourse groups for user %s" % user) logger.debug("Updating discourse groups for user %s" % user)