mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
11 lines
320 B
Ruby
11 lines
320 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RepositorySnapshotProvisioningJob < ApplicationJob
|
|
queue_as :high_priority
|
|
|
|
def perform(repository_snapshot)
|
|
service = Repositories::SnapshotProvisioningService.call(repository_snapshot: repository_snapshot)
|
|
|
|
repository_snapshot.failed! unless service.succeed?
|
|
end
|
|
end
|