celery workers refactor