move res updates to celery task