From 531ecbc96bda50a54967fbc2b9a922bd1f6da45a Mon Sep 17 00:00:00 2001 From: Taimoor Ahmed Date: Wed, 12 Jul 2023 14:20:07 +0500 Subject: [PATCH] Run dataloader in edly_site without celery - EDLY-5759 --- .../apps/edly_discovery_app/api/v1/views/edly_sites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py b/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py index 3a423bbed4..990c304cdf 100644 --- a/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py +++ b/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py @@ -34,7 +34,7 @@ def post(self, request): try: self.discovery_site_setup() - run_dataloader.delay(partner, DEFAULT_COURSE_ID.format(partner), 'lms') + run_dataloader(partner, DEFAULT_COURSE_ID.format(partner), 'lms') return Response( {'success': ERROR_MESSAGES.get('CLIENT_SITES_SETUP_SUCCESS')}, status=status.HTTP_200_OK