async-job 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/job/processor/redis/processing_list.rb +1 -2
- data/lib/async/job/processor/redis/server.rb +2 -2
- data/lib/async/job/version.rb +1 -1
- data/lib/async/job.rb +1 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68846d22341ca9edf95a092dcb92f065282cc2f51a5bf8b2e7849665a557d5ff
|
4
|
+
data.tar.gz: f625a33575bed354ae7b00995af8091160dc58259089241fe58d5d58209feb29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67d0c64d4245fd92b9b82f95d46d0f17fef1963f38971619c1b750ea41902810fe5a354027ebf7cd217929167fbec0fe084c4dadc0910bfa7bd15a626444abd7
|
7
|
+
data.tar.gz: 5ee76e100e7232c9d0ca6b5d7fdc42507ffae422879e30d2ba2b48e67e3795e4295911c22daf4e3e28832d4bad77dbf3b35561dcad330a3abba90a878059490e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -73,7 +73,6 @@ module Async
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def complete(id)
|
76
|
-
# Console.debug(self, "Completing job: #{id}")
|
77
76
|
@client.evalsha(@complete, 2, @pending_key, @job_store.key, id)
|
78
77
|
end
|
79
78
|
|
@@ -91,7 +90,7 @@ module Async
|
|
91
90
|
uptime = (Time.now.to_f - start_time).round(2)
|
92
91
|
@client.set(heartbeat_key, JSON.dump(uptime: uptime), seconds: delay*factor)
|
93
92
|
|
94
|
-
#
|
93
|
+
# Requeue any jobs that have been abandoned:
|
95
94
|
count = @client.evalsha(@requeue, 2, @key, @ready_list.key)
|
96
95
|
if count > 0
|
97
96
|
Console.warn(self, "Requeued #{count} abandoned jobs.")
|
@@ -91,8 +91,8 @@ module Async
|
|
91
91
|
@delegate.call(job)
|
92
92
|
@processing_list.complete(id)
|
93
93
|
rescue => error
|
94
|
-
|
95
|
-
|
94
|
+
Console::Event::Failure.for(error).emit(self, "Job failed with error!", id: id)
|
95
|
+
@processing_list.fail(id)
|
96
96
|
end
|
97
97
|
ensure
|
98
98
|
@processing_list.retry(_id) if _id
|
data/lib/async/job/version.rb
CHANGED
data/lib/async/job.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
39
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
40
40
|
-----END CERTIFICATE-----
|
41
|
-
date: 2024-08-
|
41
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: async
|
metadata.gz.sig
CHANGED
Binary file
|