altering task structure for celery upgrade