lex-tasker 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a86403f5cd4a6634b29ca4000c36734bb53d4f5913682e2c4f60c97defa6f590
|
4
|
+
data.tar.gz: 4dfce03dd9c7ac9b8d5ccfe21d085328fce549c25367b088a33b3df563f6f0b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2017fff11b5c75e1701cce065e7cc38b61bd2b7dbd7cb0de72d0441df9a74e93bac47a9ad9191c3c10c80548b6aa13847ffc26f8189b35fc87ae72311c3e1a3b
|
7
|
+
data.tar.gz: d501e798ea13a21333a2f67975d412338a929a23c5e2345af28f88d19be2e0420af9d0ec781cb06033ce2536dd40b33d04c96ada2aa85a8491b5f99fc7a5b0c6
|
@@ -9,7 +9,8 @@ module Legion::Extensions::Tasker::Runners
|
|
9
9
|
tasks.each do |task|
|
10
10
|
relationship = task.relationship
|
11
11
|
next if !task.relationship.nil? && Time.now < task.values[:created] + relationship.values[:delay]
|
12
|
-
|
12
|
+
|
13
|
+
# next if Time.now < task.values[:created] + task.values[:delay]
|
13
14
|
|
14
15
|
subtask = Legion::Transport::Messages::SubTask.new(
|
15
16
|
relationship_id: relationship.values[:id],
|
@@ -26,7 +27,6 @@ module Legion::Extensions::Tasker::Runners
|
|
26
27
|
task_id: task.values[:id]
|
27
28
|
# results: task.values[:payload]
|
28
29
|
)
|
29
|
-
log.debug 'publishing task'
|
30
30
|
subtask.publish
|
31
31
|
task.update(status: 'conditioner.queued')
|
32
32
|
tasks_pushed.push(task.values[:id])
|
@@ -43,7 +43,6 @@ module Legion::Extensions::Tasker::Runners
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def push(**_opts)
|
46
|
-
log.debug 'push has been called'
|
47
46
|
Legion::Extensions::Tasker::Transport::Messages::FetchDelayed.new.publish
|
48
47
|
{ success: true }
|
49
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lex-tasker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miverson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|