hephaestus 0.8.4.1 → 0.8.6

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: b84d2eb6ebcc245c0337f26093cf46d89d08380b76584475891b6a5578e4fbda
4
+ data.tar.gz: b983824e57e08c8fa71320a3605f256893cb3db63a94e2da7c2ed23876b735ae
5
5
  SHA512:
6
- metadata.gz: 440a3888bf5c63c60a114bbed95edc5d75ad432df2d6e719d76e3a0a462a59ce6503f2f700acd2c407a6c7eefefa061db55f57db0242034ff18d4e199edcdaa5
7
- data.tar.gz: 643725202f7ba005e76ec54345410cc182922ee2a505726467665aa586d3f11758262fd7db687ae1458731b041379e6fbc022c51d79b4c8b714d4babbb6fd31f
6
+ metadata.gz: 82a5dfd851446c1b4af1c8e375ffa8263fa5e375df692a07a7b22e4cf9f133d8fca0c82a0dcbe5d15d87a9a6ab2641353528b53aa6a403bdbafa1ec66073ed46
7
+ data.tar.gz: f605a57f9faa0890bf5c4e2a85643aead84806957f46065f107854d78ab783ead7bbef24b644cde3f262284e0add2496038ac636d5b045a56a0134febe52ddc0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [v0.8.6] - 03-12-2024
2
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.5...v0.8.6
3
+ # [v0.8.5] - 03-12-2024
4
+ ## What's Changed
5
+ * Queue jobs based on plug name by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/74
6
+
7
+
8
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.4.1...v0.8.5
1
9
  # [v0.8.4.1] - 02-12-2024
2
10
  **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.4...v0.8.4.1
3
11
  # [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: "plug_<%= plug_shortname %>_*" # 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.6"
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.6
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