Use user_id instead of User object in Celery tasks