This commit is contained in:
rimu 2024-02-27 05:26:06 +13:00
parent acd2317927
commit 5df5a77fbc

View file

@ -359,9 +359,9 @@ def refresh_user_profile_task(user_id):
def refresh_community_profile(community_id): def refresh_community_profile(community_id):
if current_app.debug: if current_app.debug:
refresh_community_profile(community_id) refresh_community_profile_task(community_id)
else: else:
refresh_community_profile.apply_async(args=(community_id,), countdown=randint(1, 10)) refresh_community_profile_task.apply_async(args=(community_id,), countdown=randint(1, 10))
@celery.task @celery.task