filesystem_queue 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d990e413d523a1f7f803a4dd653c5ce8e6ddbba0de25d726607bc5184e725c3c
4
- data.tar.gz: db3595416a552ad54297792d288cca66603ed71bd53d5629eddca72b383aae09
3
+ metadata.gz: 507263f6abf23e4f05518555c4cb343e181383b46b296b4f3a4fd16140a35424
4
+ data.tar.gz: 621ce937150177ec61eef9f26378254c17712e192a228ec364b52ab64ace9abd
5
5
  SHA512:
6
- metadata.gz: ceba85b6215ccdd11186fe7f255cfff6eb3b4df90ba919c3b493af9c7f3a9b6a0f75239d4712ba70c558553756f13940bd2018071ddeb9d74bbbc860ed48cdec
7
- data.tar.gz: e2571be6746a4b6fdd5063ae8ce796713db6d8bf446679cfd8a8f557fbb4c9fc0368af53a86f3a1d19a31c68c8f7a741f9c824d2720b83ad9d0b6245ac5d1382
6
+ metadata.gz: c539dd6fbd5762b4f060930afd43f91fd0698ec4a1cb046ba0a807bfba0040ef94b2c08937fadf5e60022c3caaf0c9437fd6f23ab5568fb82c3a95d9940f0722
7
+ data.tar.gz: f5cdddafbcc4c1ef45ec4ac3d4a766e0bc1a6be82ca6ed47c0c50a7850d1a3c0febd59891af8bbb84ab6e9f91b3ef655237d19d9f89a97fb9f53c756588addb5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.1] - 2024-12-31
4
+ - Fixes minor bug for failing jobs
5
+
3
6
  ## [0.4.0] - 2024-10-3
4
7
  - Failed jobs have added metadata including `last_exception` and `retry_count`
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- filesystem_queue (0.4.0)
4
+ filesystem_queue (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FilesystemQueue
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
@@ -103,7 +103,7 @@ module FilesystemQueue
103
103
  end
104
104
 
105
105
  # Adds metadata for the job for the retry count and the exception details
106
- def mark_failed_job(job_file)
106
+ def mark_failed_job(job_file, exception)
107
107
  job_data = JSON.parse(File.read(job_file), symbolize_names: true)
108
108
  job_data[:retry_count] = (job_data[:retry_count] || 0) + 1
109
109
  job_data[:last_exception] = exception.message if exception
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filesystem_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Westman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-04 00:00:00.000000000 Z
11
+ date: 2025-01-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: FilesystemQueue is a Ruby gem that provides a persistent queue system
14
14
  using the local filesystem.It allows you to enqueue and dequeue jobs, and keeps