the easiest way to do this would probably be to run the management command directly from python and run it in your task
from haystack.management.commands import update_index
update_index.Command().handle()
the easiest way to do this would probably be to run the management command directly from python and run it in your task
from haystack.management.commands import update_index
update_index.Command().handle()