diff options
Diffstat (limited to 'app/models/project_import_data.rb')
-rw-r--r-- | app/models/project_import_data.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/project_import_data.rb b/app/models/project_import_data.rb index 7e0722ab68c..96c1ad7def8 100644 --- a/app/models/project_import_data.rb +++ b/app/models/project_import_data.rb @@ -5,6 +5,11 @@ require 'carrierwave/orm/activerecord' class ProjectImportData < ApplicationRecord prepend_mod_with('ProjectImportData') # rubocop: disable Cop/InjectEnterpriseEditionModule + # Timeout strategy can only be changed via API, currently only with GitHub and BitBucket Server + OPTIMISTIC_TIMEOUT = "optimistic" + PESSIMISTIC_TIMEOUT = "pessimistic" + TIMEOUT_STRATEGIES = [OPTIMISTIC_TIMEOUT, PESSIMISTIC_TIMEOUT].freeze + belongs_to :project, inverse_of: :import_data attr_encrypted :credentials, key: Settings.attr_encrypted_db_key_base, |