migrated celery task to use shared_task.