end
end
version.update_state!('failed', "The job reached the timeout limit of #{self.class.timeout_limit} hours.")
end
Rails.logger.warn <<-MSG
Ontology Version with id <#{ontology_version_id}> could not be found.
Therefore the timeout-job will not continue. It will also not be rescheduled.
MSG
end
def state_not_terminal?(ontology_version)
!OntologyVersion::States::TERMINAL_STATES.include?(ontology_version.state)
end
end