major update in using context manager for celery progressbar