good_job 3.27.3 → 3.27.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 +22 -0
- data/config/locales/de.yml +1 -3
- data/config/locales/en.yml +1 -3
- data/config/locales/es.yml +6 -16
- data/config/locales/fr.yml +5 -7
- data/config/locales/it.yml +1 -3
- data/config/locales/ja.yml +1 -3
- data/config/locales/ko.yml +1 -3
- data/config/locales/nl.yml +1 -3
- data/config/locales/pt-BR.yml +1 -3
- data/config/locales/tr.yml +1 -3
- data/config/locales/uk.yml +1 -3
- data/lib/good_job/adapter.rb +6 -0
- data/lib/good_job/bulk.rb +1 -1
- data/lib/good_job/configuration.rb +10 -0
- 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: fa73a0d9ffc1feb2548c525af767537d79a8b6fdf4e03092c4963d91041eb73a
|
4
|
+
data.tar.gz: 41365ce2085788ff587d85a96d6bf1568fb5861ea025e98c87990ae65485ffc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a300b98ed92353715dff14d18940f0e9fa2896e1cda56428c026e62b162e3f7a2f5a07eba2a9501af2d0c1f4fa51f3c225a4ecc103f73e8eac862ec343902e6e
|
7
|
+
data.tar.gz: 25241155b1d5e375a903cbeec98e88ecaaca2fc46b1134c92ed400fbf2b024a637744db072fe42fb9af486e7ce43cec5262c6c31adceb2f948af3aacb7cc9584
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.27.4](https://github.com/bensheldon/good_job/tree/v3.27.4) (2024-04-04)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.27.3...v3.27.4)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Fix status tabs for Spanish translation [\#1307](https://github.com/bensheldon/good_job/pull/1307) ([bensheldon](https://github.com/bensheldon))
|
10
|
+
|
11
|
+
**Closed issues:**
|
12
|
+
|
13
|
+
- Adapter to implement `enqueue_after_transaction_commit` [\#1310](https://github.com/bensheldon/good_job/issues/1310)
|
14
|
+
- PG::SyntaxError: ERROR from timestamp [\#1305](https://github.com/bensheldon/good_job/issues/1305)
|
15
|
+
- Spanish translation while on the dashboard displays hashes instead of the job status name [\#1304](https://github.com/bensheldon/good_job/issues/1304)
|
16
|
+
- Exception raised during asset precompilation when no `config/database.yml` [\#1302](https://github.com/bensheldon/good_job/issues/1302)
|
17
|
+
- Good job is running with standalone action cable server [\#1299](https://github.com/bensheldon/good_job/issues/1299)
|
18
|
+
- Growing memory usage [\#1276](https://github.com/bensheldon/good_job/issues/1276)
|
19
|
+
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Implement enqueue\_after\_transaction\_commit? [\#1311](https://github.com/bensheldon/good_job/pull/1311) ([luizkowalski](https://github.com/luizkowalski))
|
23
|
+
- Fix localization formatting of `confirm_force_discard` [\#1309](https://github.com/bensheldon/good_job/pull/1309) ([bensheldon](https://github.com/bensheldon))
|
24
|
+
|
3
25
|
## [v3.27.3](https://github.com/bensheldon/good_job/tree/v3.27.3) (2024-03-29)
|
4
26
|
|
5
27
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.27.2...v3.27.3)
|
data/config/locales/de.yml
CHANGED
@@ -111,9 +111,7 @@ de:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Sind Sie sicher, dass Sie den Job zerstören wollen?
|
113
113
|
confirm_discard: Sind Sie sicher, dass Sie den Job verwerfen wollen?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Sind Sie sicher, dass Sie das Verwerfen dieses Jobs erzwingen möchten? Der Job wird als verworfen markiert, aber der laufende Job wird nicht gestoppt – er wird jedoch bei Fehlern nicht erneut versucht.
|
117
115
|
confirm_reschedule: Möchten Sie den Auftrag wirklich verschieben?
|
118
116
|
confirm_retry: Möchten Sie den Job wirklich wiederholen?
|
119
117
|
destroy: Arbeit vernichten
|
data/config/locales/en.yml
CHANGED
@@ -111,9 +111,7 @@ en:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Are you sure you want to destroy the job?
|
113
113
|
confirm_discard: Are you usure you want to discard the job?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Are you sure you want to force discard this job? The job will be marked as discarded but the running job will not be stopped - it will, however, not be retried on failures.
|
117
115
|
confirm_reschedule: Are you sure you want to reschedule the job?
|
118
116
|
confirm_retry: Are you sure you want to retry the job?
|
119
117
|
destroy: Destroy job
|
data/config/locales/es.yml
CHANGED
@@ -233,19 +233,9 @@ es:
|
|
233
233
|
inspiration: "¡Recuerda, también tú estás haciendo un buen trabajo!"
|
234
234
|
last_updated: Última actualización
|
235
235
|
status:
|
236
|
-
discarded:
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
retried:
|
243
|
-
one: Reintentada
|
244
|
-
other: Reintentadas
|
245
|
-
running: Corriendo
|
246
|
-
scheduled:
|
247
|
-
one: Programada
|
248
|
-
other: Programadas
|
249
|
-
succeeded:
|
250
|
-
one: Exitosa
|
251
|
-
other: Exitosas
|
236
|
+
discarded: Descartado
|
237
|
+
queued: Encolado
|
238
|
+
retried: Reintentado
|
239
|
+
running: Ejecutando
|
240
|
+
scheduled: Programado
|
241
|
+
succeeded: Exitoso
|
data/config/locales/fr.yml
CHANGED
@@ -33,9 +33,9 @@ fr:
|
|
33
33
|
no_batches_found: Aucun lot trouvé.
|
34
34
|
cron_entries:
|
35
35
|
actions:
|
36
|
-
confirm_disable: Voulez-vous vraiment désactiver cette entrée cron?
|
37
|
-
confirm_enable: Voulez-vous vraiment activer cette entrée cron?
|
38
|
-
confirm_enqueue: Voulez-vous vraiment mettre en file d'attente cette entrée cron?
|
36
|
+
confirm_disable: Voulez-vous vraiment désactiver cette entrée cron ?
|
37
|
+
confirm_enable: Voulez-vous vraiment activer cette entrée cron ?
|
38
|
+
confirm_enqueue: Voulez-vous vraiment mettre en file d'attente cette entrée cron ?
|
39
39
|
disable: Désactiver l'entrée cron
|
40
40
|
enable: Activer l'entrée cron
|
41
41
|
enqueue: Mettre en file d'attente l'entrée cron maintenant
|
@@ -111,9 +111,7 @@ fr:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Voulez-vous vraiment détruire le job ?
|
113
113
|
confirm_discard: Voulez-vous vraiment mettre au rebut le job ?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Êtes-vous sûr de vouloir forcer l'abandon du travail? Le travail sera marqué comme abandonné mais le travail en cours ne sera pas arrêté - cependant, il ne sera pas réessayé en cas d'échec.
|
117
115
|
confirm_reschedule: Voulez-vous vraiment replanifier le job ?
|
118
116
|
confirm_retry: Voulez-vous vraiment réessayer le job ?
|
119
117
|
destroy: Détruire le job
|
@@ -146,7 +144,7 @@ fr:
|
|
146
144
|
one: Appliquer à ce job
|
147
145
|
other: Appliquer aux %{count} jobs
|
148
146
|
confirm_destroy_all: Voulez-vous vraiment détruire les jobs sélectionnés ?
|
149
|
-
confirm_discard_all: Voulez-vous vraiment mettre au rebut les jobs sélectionnés?
|
147
|
+
confirm_discard_all: Voulez-vous vraiment mettre au rebut les jobs sélectionnés ?
|
150
148
|
confirm_reschedule_all: Voulez-vous vraiment replanifier les jobs sélectionnées ?
|
151
149
|
confirm_retry_all: Voulez-vous vraiment réessayer les jobs sélectionnées ?
|
152
150
|
destroy_all: Tout détruire
|
data/config/locales/it.yml
CHANGED
@@ -111,9 +111,7 @@ it:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Sei sicuro di voler eliminare il job?
|
113
113
|
confirm_discard: Sei sicuro di voler scartare il job?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Sei sicuro di voler forzare lo scarto di questo job? Il job verrà contrassegnato come scartato ma il job in esecuzione non verrà interrotto - tuttavia, non verrà riprovato in caso di fallimento.
|
117
115
|
confirm_reschedule: Sei sicuro di voler riprogrammare il job?
|
118
116
|
confirm_retry: Sei sicuro di voler riprovare il job?
|
119
117
|
destroy: Elimina job
|
data/config/locales/ja.yml
CHANGED
@@ -111,9 +111,7 @@ ja:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: ジョブを削除してもよろしいですか?
|
113
113
|
confirm_discard: ジョブを破棄してもよろしいですか?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: このジョブを強制的に破棄してもよろしいですか?ジョブは破棄済みとしてマークされますが、実行中のジョブは停止されません。ただし、失敗した場合は再試行されません。
|
117
115
|
confirm_reschedule: ジョブを再スケジュールしてもよろしいですか?
|
118
116
|
confirm_retry: ジョブを再試行してもよろしいですか?
|
119
117
|
destroy: ジョブを削除
|
data/config/locales/ko.yml
CHANGED
@@ -111,9 +111,7 @@ ko:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: 해당 작업을 삭제하시겠습니까?
|
113
113
|
confirm_discard: 해당 작업을 폐기하시겠습니까?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: 이 작업을 강제로 폐기하시겠습니까? 작업은 폐기로 표시되지만, 실행 중인 작업은 중지되지 않습니다. 그러나 실패한 경우 재시도되지 않습니다.
|
117
115
|
confirm_reschedule: 해당 작업을 재예약하시겠습니까?
|
118
116
|
confirm_retry: 해당 작업을 다시 시도하시겠습니까?
|
119
117
|
destroy: 작업 삭제
|
data/config/locales/nl.yml
CHANGED
@@ -111,9 +111,7 @@ nl:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Weet je zeker dat je de baan wilt vernietigen?
|
113
113
|
confirm_discard: Wilt u de baan afwijzen?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Weet u zeker dat u deze taak geforceerd wilt weggooien? De taak wordt gemarkeerd als verwijderd, maar de lopende taak wordt niet gestopt. Bij fouten wordt deze echter niet opnieuw geprobeerd.
|
117
115
|
confirm_reschedule: Weet u zeker dat u de taak opnieuw wilt inplannen?
|
118
116
|
confirm_retry: Weet u zeker dat u de taak opnieuw wilt proberen?
|
119
117
|
destroy: Baan vernietigen
|
data/config/locales/pt-BR.yml
CHANGED
@@ -111,9 +111,7 @@ pt-BR:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Tem certeza de que deseja excluir a tarefa?
|
113
113
|
confirm_discard: Tem certeza de que deseja descartar a tarefa?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Tem certeza de que deseja forçar o descarte desta tarefa? A tarefa será marcada como descartada, mas a tarefa em execução não será interrompida - no entanto, ela não será tentada novamente em falhas.
|
117
115
|
confirm_reschedule: Tem certeza de que deseja reagendar a tarefa?
|
118
116
|
confirm_retry: Tem certeza de que deseja tentar novamente a tarefa?
|
119
117
|
destroy: Excluir tarefa
|
data/config/locales/tr.yml
CHANGED
@@ -111,9 +111,7 @@ tr:
|
|
111
111
|
actions:
|
112
112
|
confirm_destroy: Bu işi silmek istediğinizden emin misiniz?
|
113
113
|
confirm_discard: Bu işi iptal etmek istediğinizden emin misiniz?
|
114
|
-
confirm_force_discard:
|
115
|
-
|
116
|
-
'
|
114
|
+
confirm_force_discard: Bu işi zorla iptal etmek istediğinizden emin misiniz? İş atıldı olarak işaretlenecek ancak devam eden iş durdurulmayacak; ancak başarısızlık durumunda yeniden denenmeyecek.
|
117
115
|
confirm_reschedule: Bu işi yeniden planlamak istediğinizden emin misiniz?
|
118
116
|
confirm_retry: Bu işi tekrar denemek istediğinizden emin misiniz?
|
119
117
|
destroy: İşi Sil
|
data/config/locales/uk.yml
CHANGED
@@ -135,9 +135,7 @@ uk:
|
|
135
135
|
actions:
|
136
136
|
confirm_destroy: Ви впевнені, що хочете видалити завдання?
|
137
137
|
confirm_discard: Ви впевнені, що хочете відхилити завдання?
|
138
|
-
confirm_force_discard:
|
139
|
-
|
140
|
-
'
|
138
|
+
confirm_force_discard: Ви впевнені, що хочете примусово скасувати цю роботу? Завдання буде позначено як відхилене, але виконуване завдання не буде зупинено – однак його не буде повторено у випадку помилок.
|
141
139
|
confirm_reschedule: Ви впевнені, що хочете перепланувати завдання?
|
142
140
|
confirm_retry: Ви впевнені, що хочете повторити завдання?
|
143
141
|
destroy: Видалити завдання
|
data/lib/good_job/adapter.rb
CHANGED
@@ -42,6 +42,12 @@ module GoodJob
|
|
42
42
|
enqueue_at(active_job, nil)
|
43
43
|
end
|
44
44
|
|
45
|
+
# Defines if enqueueing this job from inside an Active Record transaction
|
46
|
+
# automatically defers the enqueue to after the transaction commit.
|
47
|
+
def enqueue_after_transaction_commit?
|
48
|
+
GoodJob.configuration.enqueue_after_transaction_commit
|
49
|
+
end
|
50
|
+
|
45
51
|
# Enqueues multiple ActiveJob instances at once
|
46
52
|
# @param active_jobs [Array<ActiveJob::Base>] jobs to be enqueued
|
47
53
|
# @return [Integer] number of jobs that were successfully enqueued
|
data/lib/good_job/bulk.rb
CHANGED
@@ -14,7 +14,7 @@ module GoodJob
|
|
14
14
|
|
15
15
|
# Capture jobs to a buffer. Pass either a block, or specific Active Jobs to be buffered.
|
16
16
|
# @param active_jobs [Array<ActiveJob::Base>] Active Jobs to be buffered.
|
17
|
-
# @param queue_adapter Override the jobs
|
17
|
+
# @param queue_adapter Override the jobs implicit queue adapter with an explicit one.
|
18
18
|
# @return [nil, Array<ActiveJob::Base>] The ActiveJob instances that have been buffered; nil if no active buffer
|
19
19
|
def self.capture(active_jobs = nil, queue_adapter: nil, &block)
|
20
20
|
raise(ArgumentError, "Use either the block form or the argument form, not both") if block && active_jobs
|
@@ -33,6 +33,8 @@ module GoodJob
|
|
33
33
|
DEFAULT_DASHBOARD_DEFAULT_LOCALE = :en
|
34
34
|
# Default Dashboard Live Poll button enabled
|
35
35
|
DEFAULT_DASHBOARD_LIVE_POLL_ENABLED = true
|
36
|
+
# Default enqueue_after_transaction_commit
|
37
|
+
DEFAULT_ENQUEUE_AFTER_TRANSACTION_COMMIT = false
|
36
38
|
|
37
39
|
def self.validate_execution_mode(execution_mode)
|
38
40
|
raise ArgumentError, "GoodJob execution mode must be one of #{EXECUTION_MODES.join(', ')}. It was '#{execution_mode}' which is not valid." unless execution_mode.in?(EXECUTION_MODES)
|
@@ -389,6 +391,14 @@ module GoodJob
|
|
389
391
|
DEFAULT_DASHBOARD_LIVE_POLL_ENABLED
|
390
392
|
end
|
391
393
|
|
394
|
+
# Whether the Adapter should have Active Job enqueue jobs after the transaction has committed.
|
395
|
+
# @return [Boolean]
|
396
|
+
def enqueue_after_transaction_commit
|
397
|
+
return options[:enqueue_after_transaction_commit] unless options[:enqueue_after_transaction_commit].nil?
|
398
|
+
|
399
|
+
DEFAULT_ENQUEUE_AFTER_TRANSACTION_COMMIT
|
400
|
+
end
|
401
|
+
|
392
402
|
# Whether running in a web server process.
|
393
403
|
# @return [Boolean, nil]
|
394
404
|
def in_webserver?
|
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: 3.27.
|
4
|
+
version: 3.27.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: 2024-
|
11
|
+
date: 2024-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|