graphiti 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/graphiti/scope.rb +3 -3
- data/lib/graphiti/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7e9a22a29df9a53ef4c2da7a6bb102c4407f21201440cd0888015c2442895b5
|
|
4
|
+
data.tar.gz: 405ed0c5ee38118ef4b535bc5751dcb960630117ca9ca1706b69bb91eda6df4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa1bbea7813069ac8c97bacdb7d298162bc55121771974693264c81b5b85da9420aef3d3c0509e96013f9266861e6a0e8dc61853e88dcb88b7cc7c9ddf83fa99
|
|
7
|
+
data.tar.gz: 9929dda99cd0fecbbac7939c1a161f43f20944921950cf8f4e8bb30c30251fcbf1f253364ee7fe4c7c442e4eafb7d74c6c2cb6347835f7cdbc71713c31938639
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
graphiti changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.2](https://github.com/graphiti-api/graphiti/compare/v1.6.1...v1.6.2) (2024-03-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* thread pool scope and mutex need to be global across all instances of Scope for it to be a global thread pool ([#471](https://github.com/graphiti-api/graphiti/issues/471)) ([51fb51c](https://github.com/graphiti-api/graphiti/commit/51fb51c31f0043d98aa07f689a8cf8c758fa823b))
|
|
9
|
+
|
|
3
10
|
## [1.6.1](https://github.com/graphiti-api/graphiti/compare/v1.6.0...v1.6.1) (2024-03-22)
|
|
4
11
|
|
|
5
12
|
|
data/lib/graphiti/scope.rb
CHANGED
|
@@ -3,14 +3,14 @@ module Graphiti
|
|
|
3
3
|
attr_accessor :object, :unpaginated_object
|
|
4
4
|
attr_reader :pagination
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
@@thread_pool_executor_mutex = Mutex.new
|
|
7
7
|
|
|
8
8
|
def self.thread_pool_executor
|
|
9
9
|
return @thread_pool_executor if @thread_pool_executor
|
|
10
10
|
|
|
11
11
|
concurrency = Graphiti.config.concurrency_max_threads || 4
|
|
12
|
-
|
|
13
|
-
Concurrent::ThreadPoolExecutor.new(
|
|
12
|
+
@@thread_pool_executor_mutex.synchronize do
|
|
13
|
+
@@thread_pool_executor ||= Concurrent::ThreadPoolExecutor.new(
|
|
14
14
|
min_threads: 0,
|
|
15
15
|
max_threads: concurrency,
|
|
16
16
|
max_queue: concurrency * 4,
|
data/lib/graphiti/version.rb
CHANGED