good_job 2.9.3 → 2.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -3
- data/README.md +6 -6
- data/engine/app/views/layouts/good_job/base.html.erb +3 -1
- data/lib/good_job/log_subscriber.rb +1 -1
- data/lib/good_job/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b97fd131b5bf8c808b9b40b42e0daad06c3e657e9f9f093bda45ef7b1ad003cd
|
4
|
+
data.tar.gz: 4b988574b3e6c5d6877f835c7b9a2956099737a508b824da53e3e61005f4fcc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caf7be40dd4b22cd6461e5dc8f83349ea377cdf7edfd0082d85ec35a9636ee58d1e4d890ba7d6aae9cb81e1357c1e3d709501ff68d173f3443d399903f4185ac
|
7
|
+
data.tar.gz: 913bcd9082c2a66d48e85af5d8f8bab86fdf355636a59fe1a4328f77f0fc952b13ee722d9b867238bd4da6dd3301820f2f5dd1407758f7cf23ec7152edd149f7
|
data/CHANGELOG.md
CHANGED
@@ -1,17 +1,38 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [v2.9.
|
3
|
+
## [v2.9.4](https://github.com/bensheldon/good_job/tree/v2.9.4) (2022-01-31)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/bensheldon/good_job/compare/v2.9.
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v2.9.3...v2.9.4)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Fix navbar toggler [\#506](https://github.com/bensheldon/good_job/pull/506) ([JuanVqz](https://github.com/JuanVqz))
|
10
|
+
- Guard LogSubscriber against tagged logger without a formatter [\#504](https://github.com/bensheldon/good_job/pull/504) ([bensheldon](https://github.com/bensheldon))
|
11
|
+
- Markdown lint fixes + Added missing responsive meta tag [\#492](https://github.com/bensheldon/good_job/pull/492) ([zeevy](https://github.com/zeevy))
|
6
12
|
|
7
13
|
**Closed issues:**
|
8
14
|
|
9
|
-
-
|
15
|
+
- The navbar icon doesn't show the navbar menu when clicking it [\#503](https://github.com/bensheldon/good_job/issues/503)
|
16
|
+
- Not all loggers have a formatter [\#502](https://github.com/bensheldon/good_job/issues/502)
|
17
|
+
- Error logs from failed jobs used all storage space [\#495](https://github.com/bensheldon/good_job/issues/495)
|
10
18
|
|
11
19
|
**Merged pull requests:**
|
12
20
|
|
21
|
+
- Update Code of Conduct to Contributor Covenant 2.1 [\#501](https://github.com/bensheldon/good_job/pull/501) ([bensheldon](https://github.com/bensheldon))
|
22
|
+
- Test with Ruby 3.1 [\#498](https://github.com/bensheldon/good_job/pull/498) ([aried3r](https://github.com/aried3r))
|
23
|
+
|
24
|
+
## [v2.9.3](https://github.com/bensheldon/good_job/tree/v2.9.3) (2022-01-23)
|
25
|
+
|
26
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v2.9.2...v2.9.3)
|
27
|
+
|
28
|
+
**Fixed bugs:**
|
29
|
+
|
13
30
|
- Use `*_url` route helpers for Dashboard assets to avoid being overridden by `config.asset_host` [\#493](https://github.com/bensheldon/good_job/pull/493) ([bensheldon](https://github.com/bensheldon))
|
14
31
|
|
32
|
+
**Closed issues:**
|
33
|
+
|
34
|
+
- Assets not loaded when Rails is configured with a different hostname for assets [\#491](https://github.com/bensheldon/good_job/issues/491)
|
35
|
+
|
15
36
|
## [v2.9.2](https://github.com/bensheldon/good_job/tree/v2.9.2) (2022-01-19)
|
16
37
|
|
17
38
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v2.9.1...v2.9.2)
|
data/README.md
CHANGED
@@ -119,7 +119,7 @@ For more of the story of GoodJob, read the [introductory blog post](https://isla
|
|
119
119
|
- By default, GoodJob separates job enqueuing from job execution so that jobs can be scaled independently of the web server. Use the GoodJob command-line tool to execute jobs:
|
120
120
|
|
121
121
|
```bash
|
122
|
-
|
122
|
+
bundle exec good_job start
|
123
123
|
```
|
124
124
|
|
125
125
|
Ideally the command-line tool should be run on a separate machine or container from the web process. For example, on Heroku:
|
@@ -133,8 +133,8 @@ For more of the story of GoodJob, read the [introductory blog post](https://isla
|
|
133
133
|
|
134
134
|
- GoodJob can also be configured to execute jobs within the web server process to save on resources. This is useful for low-workloads when economy is paramount.
|
135
135
|
|
136
|
-
```
|
137
|
-
|
136
|
+
```bash
|
137
|
+
GOOD_JOB_EXECUTION_MODE=async rails server
|
138
138
|
```
|
139
139
|
|
140
140
|
Additional configuration is likely necessary, see the reference below for configuration.
|
@@ -470,7 +470,7 @@ To perform upgrades to the GoodJob database tables:
|
|
470
470
|
Optional: If using Rails' multiple databases with the `migrations_paths` configuration option, use the `--database` option:
|
471
471
|
|
472
472
|
```bash
|
473
|
-
|
473
|
+
bin/rails g good_job:update --database animals
|
474
474
|
```
|
475
475
|
|
476
476
|
1. Run the database migration locally
|
@@ -703,7 +703,7 @@ GoodJob can execute jobs "async" in the same process as the web server (e.g. `bi
|
|
703
703
|
- Or, with environment variables:
|
704
704
|
|
705
705
|
```bash
|
706
|
-
|
706
|
+
GOOD_JOB_EXECUTION_MODE=async GOOD_JOB_MAX_THREADS=4 GOOD_JOB_POLL_INTERVAL=30 bin/rails server
|
707
707
|
```
|
708
708
|
|
709
709
|
Depending on your application configuration, you may need to take additional steps:
|
@@ -821,7 +821,7 @@ It is also necessary to delete these preserved jobs from the database after a ce
|
|
821
821
|
- For example, using the `good_job` command-line utility:
|
822
822
|
|
823
823
|
```bash
|
824
|
-
|
824
|
+
bundle exec good_job cleanup_preserved_jobs --before-seconds-ago=86400
|
825
825
|
```
|
826
826
|
|
827
827
|
### PgBouncer compatibility
|
@@ -2,6 +2,8 @@
|
|
2
2
|
<html lang="en">
|
3
3
|
<head>
|
4
4
|
<title>Good Job Dashboard</title>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
|
5
7
|
<%= csrf_meta_tags %>
|
6
8
|
<%= csp_meta_tag %>
|
7
9
|
|
@@ -19,7 +21,7 @@
|
|
19
21
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
20
22
|
<div class="container-fluid">
|
21
23
|
<%= link_to "GoodJob 👍", root_path, class: 'navbar-brand mb-0 h1' %>
|
22
|
-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
24
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
23
25
|
<span class="navbar-toggler-icon"></span>
|
24
26
|
</button>
|
25
27
|
|
@@ -206,7 +206,7 @@ module GoodJob
|
|
206
206
|
good_job_tag = ["ActiveJob"].freeze
|
207
207
|
|
208
208
|
self.class.loggers.inject(block) do |inner, each_logger|
|
209
|
-
if each_logger.respond_to?(:tagged)
|
209
|
+
if each_logger.respond_to?(:tagged) && each_logger.formatter
|
210
210
|
tags_for_logger = if each_logger.formatter.current_tags.include?("ActiveJob")
|
211
211
|
good_job_tag + tags
|
212
212
|
else
|
data/lib/good_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: good_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Sheldon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|