Fix publishing_by_task