kithe 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/kithe/create_derivatives_job.rb +6 -1
- data/lib/kithe/version.rb +1 -1
- data/spec/dummy/log/test.log +111162 -0
- data/spec/models/kithe/asset/asset_create_derivatives_spec.rb +21 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bde82499d288e869bcdc6ca8155591e2dd2f5bbbd99da67fac721817eab72d6a
|
4
|
+
data.tar.gz: 451c606f2840694677c01eac5af0bc2594e9dba98837cdc56701ffa0774f4ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de2c06c7a1f60d73da84697406a92350467ae0a8734a21e55ce2b29646a647fb5f06ef1ea0b58135758b86f8f48dbd5f95c1be92ef164ebf5e66429d1c3463d
|
7
|
+
data.tar.gz: d910de267c9b7753f4879147c0bf77e893507d87df923e27722c47a6002acc95ffc5414751a5dedc0ccac48e8845aa2e95cc290ed670bdf3f7fef554a84c7182
|
@@ -1,7 +1,12 @@
|
|
1
1
|
module Kithe
|
2
2
|
class CreateDerivativesJob < Job
|
3
3
|
def perform(asset, mark_created: nil)
|
4
|
-
|
4
|
+
asset.create_derivatives(mark_created: mark_created)
|
5
|
+
end
|
6
|
+
# This error typically occurs when several large assets, whose derivatives
|
7
|
+
# take a long time to generate, are deleted immediately after ingest.
|
8
|
+
rescue_from(ActiveJob::DeserializationError) do |exception|
|
9
|
+
Rails.logger.error("Kithe::CreateDerivativesJob: Unable to create derivatives for this asset, as it was unavailable. Details: #{exception}")
|
5
10
|
end
|
6
11
|
end
|
7
12
|
end
|
data/lib/kithe/version.rb
CHANGED