Class: Lfs::PushService
- Inherits:
-
BaseService
- Object
- BaseService
- Lfs::PushService
- Includes:
- Gitlab::Utils::StrongMemoize
- Defined in:
- app/services/lfs/push_service.rb
Overview
Lfs::PushService pushes the LFS objects associated with a project to a remote URL
Constant Summary collapse
- BATCH_SIZE =
Match the canonical LFS client’s batch size: github.com/git-lfs/git-lfs/blob/master/tq/transfer_queue.go#L19
100
Instance Attribute Summary
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
Methods inherited from BaseService
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
This class inherits a constructor from BaseService
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/services/lfs/push_service.rb', line 13 def execute lfs_objects_relation.each_batch(of: BATCH_SIZE) do |objects| push_objects!(objects) end success rescue StandardError => err Gitlab::ErrorTracking.log_exception(err, extra_context) error(err.) end |