chaotic_job 0.11.0 → 0.11.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 +8 -0
- data/lib/chaotic_job/simulation.rb +4 -1
- data/lib/chaotic_job/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: '053699f58cc1c9b558103f548e21b6bade711cfbd1c3a8ead49b4209cf6ee401'
|
4
|
+
data.tar.gz: 05d58a3b0b986513bb1c6e479a7068c97008900e78445f9c1d71c9f4953797ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73bc8a783b7f98a7ed124686eeafb5a23ad980aa685ec365825d7d76a3f2a7fb395fe2ae6f4c93c6269e62dc90dd94a1d0369b07087c07a09e3b761d8bf5575f
|
7
|
+
data.tar.gz: dc1ebc69d47b438364b45e6be755829be54f51823080dc1292fd4233e2d707971e3b18ef0ff038ed7599dd862a2070707e62eea8819d009cc789f5c84395897f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.11.2] - 2025-06-18
|
4
|
+
|
5
|
+
- Disconnect ActiveRecord connections after defining Simulation scenarios [#22](https://github.com/fractaledmind/chaotic_job/pull/22)
|
6
|
+
|
7
|
+
## [0.11.1] - 2025-06-18
|
8
|
+
|
9
|
+
- Fix mistaken `job_id` assignment in `Simulation`
|
10
|
+
|
3
11
|
## [0.11.0] - 2025-06-18
|
4
12
|
|
5
13
|
- Allow a Simulation to control the ActiveSupport::Notifications captured, and capture all by default [#20](https://github.com/fractaledmind/chaotic_job/pull/20)
|
@@ -38,6 +38,10 @@ module ChaoticJob
|
|
38
38
|
assert scenario.glitched?, "Scenario did not execute glitch: #{scenario.glitch}"
|
39
39
|
end
|
40
40
|
end
|
41
|
+
|
42
|
+
# Since the callstack capture likely touches the database and this code runs during test class definition,
|
43
|
+
# we need to disconnect the database connection before possible parallel test forking
|
44
|
+
ActiveRecord::Base.connection_pool.disconnect! if ActiveRecord::Base.connected?
|
41
45
|
end
|
42
46
|
|
43
47
|
private
|
@@ -77,7 +81,6 @@ module ChaoticJob
|
|
77
81
|
serialized_template = @template.serialize
|
78
82
|
job = ActiveJob::Base.deserialize(serialized_template)
|
79
83
|
job.exception_executions = {}
|
80
|
-
job.job_id = [job.job_id.split("-").first, glitch.event, glitch.key].join("-")
|
81
84
|
job
|
82
85
|
end
|
83
86
|
|
data/lib/chaotic_job/version.rb
CHANGED