hephaestus 0.8.4.1 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/jobs/hephaestus/application_job.rb +8 -2
- data/config/queue.yml +4 -4
- data/lib/hephaestus/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: 44a6ef560eaf3539cd8bde7d6e0bebd03d527151d3cf1b6dc6514c8b0901f03b
|
4
|
+
data.tar.gz: 59de90522a1ce2df7bc841c8d6af6ff94d3624591dcf05fc78a84146fb19abcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56f28075c9a0722b687092e376a7de1d906612e00a919cc6bd0cb7100e92d46424c223670f9311971c376dc29ec23f25de1b1fa42e552e0623dca3f0746ef527
|
7
|
+
data.tar.gz: d7cc7da306bc4c19eaa56ee8eebed915d1dadf246f678d7e1eb772973c14e2a2285896571a1b7fbc5bd5c16f7e8b1749c708829aca6f416ba07b5c755062cade
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.8.5] - 03-12-2024
|
2
|
+
## What's Changed
|
3
|
+
* Queue jobs based on plug name by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/74
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.4.1...v0.8.5
|
1
7
|
# [v0.8.4.1] - 02-12-2024
|
2
8
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.4...v0.8.4.1
|
3
9
|
# [v0.8.4] - 02-12-2024
|
@@ -4,9 +4,15 @@
|
|
4
4
|
module Hephaestus
|
5
5
|
class ApplicationJob < ActiveJob::Base
|
6
6
|
# Automatically retry jobs that encountered a deadlock
|
7
|
-
|
7
|
+
retry_on ActiveRecord::Deadlocked
|
8
8
|
|
9
9
|
# Most jobs are safe to ignore if the underlying records are no longer available
|
10
|
-
|
10
|
+
discard_on ActiveJob::DeserializationError
|
11
|
+
|
12
|
+
class << self
|
13
|
+
def queue_as(part_name = nil, &block)
|
14
|
+
super("plug_#{plug_shortname}_#{part_name}", &block)
|
15
|
+
end
|
16
|
+
end
|
11
17
|
end
|
12
18
|
end
|
data/config/queue.yml
CHANGED
@@ -3,10 +3,10 @@ default: &default
|
|
3
3
|
- polling_interval: 1
|
4
4
|
batch_size: 500
|
5
5
|
workers:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
- queues: [plug_<%= plug_shortname %>_high_priority*, plug_<%= plug_shortname %>_mid_priority*, plug_<%= plug_shortname %>_low_priority*]
|
7
|
+
threads: 5
|
8
|
+
- queues: "*" # default, mailers, etc
|
9
|
+
threads: 3
|
10
10
|
|
11
11
|
development:
|
12
12
|
<<: *default
|
data/lib/hephaestus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hephaestus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|