give warning and raise exception for fi in combination with number_of_workers