Skip to content

Commit

Permalink
Update Dataloader api
Browse files Browse the repository at this point in the history
  • Loading branch information
Taimoor Ahmed authored and Taimoor Ahmed committed May 2, 2024
1 parent 9c8a150 commit db022d0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions course_discovery/apps/edly_discovery_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,3 @@ def run_dataloader(partner, course_id, service):
max_workers=1,
course_id=course_id
).ingest()

if service == 'wordpress':
update_index_cmd = "/edx/app/discovery/venvs/discovery/bin/python /edx/app/discovery/discovery/manage.py update_index --disable-change-limit"
remove_unused_index_cmd = "/edx/app/discovery/venvs/discovery/bin/python /edx/app/discovery/discovery/manage.py remove_unused_indexes"
LOGGER.info('Runing update_index command ...')
with subprocess.Popen(update_index_cmd, stdout=subprocess.PIPE, shell=True) as proc:
LOGGER.info(proc.stdout.read())

LOGGER.info('Runing remove_unused indexes command ...')
with subprocess.Popen(remove_unused_index_cmd, stdout=subprocess.PIPE, shell=True) as proc:
LOGGER.info(proc.stdout.read())

0 comments on commit db022d0

Please sign in to comment.