A workaround for the lack of dynamic tasks in Celery