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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c0cdf0f3cb948b95a186f7dd0906ae4dc394d361b4e8cac3bc65ff55d13f59b
4
- data.tar.gz: 35e053d5120e2dde9af5aefeaba0eade513e84e01788bddd61de79c1ab1cbf18
3
+ metadata.gz: 44a6ef560eaf3539cd8bde7d6e0bebd03d527151d3cf1b6dc6514c8b0901f03b
4
+ data.tar.gz: 59de90522a1ce2df7bc841c8d6af6ff94d3624591dcf05fc78a84146fb19abcd
5
5
  SHA512:
6
- metadata.gz: 440a3888bf5c63c60a114bbed95edc5d75ad432df2d6e719d76e3a0a462a59ce6503f2f700acd2c407a6c7eefefa061db55f57db0242034ff18d4e199edcdaa5
7
- data.tar.gz: 643725202f7ba005e76ec54345410cc182922ee2a505726467665aa586d3f11758262fd7db687ae1458731b041379e6fbc022c51d79b4c8b714d4babbb6fd31f
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
- # retry_on ActiveRecord::Deadlocked
7
+ retry_on ActiveRecord::Deadlocked
8
8
 
9
9
  # Most jobs are safe to ignore if the underlying records are no longer available
10
- # discard_on ActiveJob::DeserializationError
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
- - queues: [high_priority*, mid_priority*, low_priority*]
7
- threads: 5
8
- - queues: "*" # default, mailers, etc
9
- threads: 3
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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.4.1"
5
+ VERSION = "0.8.5"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
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.1
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-02 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap