good_job 4.13.2 → 4.13.3
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 +13 -0
- data/README.md +10 -8
- data/app/models/concerns/good_job/filterable.rb +2 -2
- data/lib/good_job/daemon.rb +1 -1
- data/lib/good_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: 2993eeb7c69f566b281456e5d7122dbbc685de9efc5ce56ae7b62edbec5e9d1a
|
|
4
|
+
data.tar.gz: 9528654eca760b6bcb2bf18890263c4213c0e4df71174e9ab5a55ac55982182b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d293a78adc12d75fde3473c84a65c7a4c7cabc6d9e35bb39d9e9c9547d376fd1ff41877b92ceba3a1e87d906a1242d224ed4f61cf9e790146ab56b01111c183
|
|
7
|
+
data.tar.gz: 1ded68b5610c971520b7f515566d4def597cfca9dfb85e4d099422b756f40720ccba94864a2998bf7b7f86bb7d6588b59e86e5ec93e62672b899b12d2cbcba7b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v4.13.3](https://github.com/bensheldon/good_job/tree/v4.13.3) (2026-02-18)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.13.2...v4.13.3)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Fix search\_text scope using mismatched text search configurations [\#1716](https://github.com/bensheldon/good_job/pull/1716) ([alexspeller](https://github.com/alexspeller))
|
|
10
|
+
- --daemonize no longer changes working directory, fixes relative paths [\#1714](https://github.com/bensheldon/good_job/pull/1714) ([jamie](https://github.com/jamie))
|
|
11
|
+
|
|
12
|
+
**Merged pull requests:**
|
|
13
|
+
|
|
14
|
+
- Update suggested Puma config in README [\#1713](https://github.com/bensheldon/good_job/pull/1713) ([Spone](https://github.com/Spone))
|
|
15
|
+
|
|
3
16
|
## [v4.13.2](https://github.com/bensheldon/good_job/tree/v4.13.2) (2026-01-29)
|
|
4
17
|
|
|
5
18
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.13.1...v4.13.2)
|
data/README.md
CHANGED
|
@@ -1302,16 +1302,18 @@ Depending on your application configuration, you may need to take additional ste
|
|
|
1302
1302
|
```ruby
|
|
1303
1303
|
# config/puma.rb
|
|
1304
1304
|
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1305
|
+
if ENV.fetch("WEB_CONCURRENCY", 0).to_i > 0
|
|
1306
|
+
before_fork do
|
|
1307
|
+
GoodJob.shutdown
|
|
1308
|
+
end
|
|
1308
1309
|
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1310
|
+
before_worker_boot do
|
|
1311
|
+
GoodJob.restart
|
|
1312
|
+
end
|
|
1312
1313
|
|
|
1313
|
-
|
|
1314
|
-
|
|
1314
|
+
before_worker_shutdown do
|
|
1315
|
+
GoodJob.shutdown
|
|
1316
|
+
end
|
|
1315
1317
|
end
|
|
1316
1318
|
|
|
1317
1319
|
MAIN_PID = Process.pid
|
|
@@ -43,8 +43,8 @@ module GoodJob
|
|
|
43
43
|
# TODO: turn this into proper bind parameters in Arel
|
|
44
44
|
tsvector = "(to_tsvector('english', id::text) || to_tsvector('english', COALESCE(active_job_id::text, '')) || to_tsvector('english', serialized_params) || to_tsvector('english', COALESCE(serialized_params->>'arguments', '')) || to_tsvector('english', COALESCE(error, '')) || to_tsvector('english', COALESCE(array_to_string(labels, ' '), '')))"
|
|
45
45
|
to_tsquery_function = database_supports_websearch_to_tsquery? ? 'websearch_to_tsquery' : 'plainto_tsquery'
|
|
46
|
-
where("#{tsvector} @@ #{to_tsquery_function}(?)", query)
|
|
47
|
-
.order(sanitize_sql_for_order([Arel.sql("ts_rank(#{tsvector}, #{to_tsquery_function}(?))"), query]) => 'DESC')
|
|
46
|
+
where("#{tsvector} @@ #{to_tsquery_function}('english', ?)", query)
|
|
47
|
+
.order(sanitize_sql_for_order([Arel.sql("ts_rank(#{tsvector}, #{to_tsquery_function}('english', ?))"), query]) => 'DESC')
|
|
48
48
|
end)
|
|
49
49
|
end
|
|
50
50
|
|
data/lib/good_job/daemon.rb
CHANGED
data/lib/good_job/version.rb
CHANGED