added celery task and refactored upload wieghts service