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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/filesystem_queue/version.rb +1 -1
- data/lib/filesystem_queue.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: 507263f6abf23e4f05518555c4cb343e181383b46b296b4f3a4fd16140a35424
|
4
|
+
data.tar.gz: 621ce937150177ec61eef9f26378254c17712e192a228ec364b52ab64ace9abd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c539dd6fbd5762b4f060930afd43f91fd0698ec4a1cb046ba0a807bfba0040ef94b2c08937fadf5e60022c3caaf0c9437fd6f23ab5568fb82c3a95d9940f0722
|
7
|
+
data.tar.gz: f5cdddafbcc4c1ef45ec4ac3d4a766e0bc1a6be82ca6ed47c0c50a7850d1a3c0febd59891af8bbb84ab6e9f91b3ef655237d19d9f89a97fb9f53c756588addb5
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/filesystem_queue.rb
CHANGED
@@ -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.
|
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:
|
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
|