For reference: https://github.com/gem/oq-engine/pull/1012