Added option to use celery instance