inst_data_shipper 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40cd83e6acf9255bfae93a00c7b31d8b9f71d3691d13437244165fd89a1ddc5
|
4
|
+
data.tar.gz: 8c4c28ff0ca83b71b35c1f55686eb173ccfd7b264db7d83fe3ade5976ddb79ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6edb9ebdd4367e6601a5b9920ecd7d0df11ea93b572becb68c42fa63b2c0d78b2ddab488a88f58eb0ad3e4630a011410001d5407aa0c81ce1e8f1eb0f8276bd5
|
7
|
+
data.tar.gz: 66ed5c81ed3b8c4f688c0e6051e376ceb28b370393189aaa1507e5ae6922c36dd130efbaed46c8ae6f132895b345e9661a195803684571ccf03a434ebcbb70b3
|
@@ -28,7 +28,7 @@ module InstDataShipper
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def import_canvas_report_by_terms(*args, **kwargs)
|
31
|
-
|
31
|
+
delayed(:_import_canvas_report_by_terms, *args, **kwargs)
|
32
32
|
end
|
33
33
|
|
34
34
|
def import_existing_report(report, **kwargs)
|
@@ -96,8 +96,7 @@ module InstDataShipper
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def _in_canvas_report_pool(mthd, *args, **kwargs)
|
99
|
-
|
100
|
-
Jobs::AsyncCaller.call_from_pool(pool, self.class, mthd, *args, **kwargs)
|
99
|
+
call_in_pool(batch_context[:report_processor_pool], mthd, *args, **kwargs)
|
101
100
|
end
|
102
101
|
|
103
102
|
def _process_canvas_report(report:, schema_name: nil)
|
@@ -308,6 +308,11 @@ module InstDataShipper
|
|
308
308
|
Jobs::AsyncCaller.perform_later(self.class.to_s, mthd.to_s, *args, **kwargs)
|
309
309
|
end
|
310
310
|
|
311
|
+
def call_in_pool(pool, mthd, *args, **kwargs)
|
312
|
+
pool = CanvasSync::JobBatches::Pool.from_pid(pool) if pool.is_a?(String)
|
313
|
+
Jobs::AsyncCaller.call_from_pool(pool, self.class, mthd, *args, **kwargs)
|
314
|
+
end
|
315
|
+
|
311
316
|
delegate :working_dir, to: :executor
|
312
317
|
|
313
318
|
def batch
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inst_data_shipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|