funktor 0.6.1 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/lib/active_job/queue_adapters/funktor_adapter.rb +3 -6
- data/lib/funktor/version.rb +1 -1
- data/lib/funktor/web/views/retries.erb +1 -1
- data/lib/funktor/web/views/scheduled.erb +1 -1
- data/lib/funktor/web/views/stats.erb +1 -1
- data/lib/funktor/web.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c92c5b6465ea858b39776c939ca3ac42e4680b19bae5071660e212b80ad5fa23
|
4
|
+
data.tar.gz: 54b4a61d1ae01a7e06a1ce3bd027f2aaf55faccda40e4e1789d698b60ff4a57d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb515d5ed863cf279cee8ebcafa1ee352b0a470146c0795ed7d51d8b11d83cf0bdb577d90f0abdc5155d81a3d2446058401f2d138cf2a92ac283c54f3236bf34
|
7
|
+
data.tar.gz: 92add3f0a131296bd1e11d3cc9c87b97e257647d6ef2ac54e00c28bbc2aaa98961672128318cab465d7d5553094b931bf8f6078bb985530d6f41cf1c73fc6299
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
funktor (0.6.
|
4
|
+
funktor (0.6.5)
|
5
5
|
activesupport
|
6
6
|
aws-sdk-dynamodb (~> 1.62)
|
7
7
|
aws-sdk-sqs (~> 1.37)
|
@@ -10,10 +10,10 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activejob (6.1.4)
|
14
|
-
activesupport (= 6.1.4)
|
13
|
+
activejob (6.1.4.1)
|
14
|
+
activesupport (= 6.1.4.1)
|
15
15
|
globalid (>= 0.3.6)
|
16
|
-
activesupport (6.1.4)
|
16
|
+
activesupport (6.1.4.1)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
18
|
i18n (>= 1.6, < 2)
|
19
19
|
minitest (>= 5.1)
|
@@ -42,8 +42,8 @@ GEM
|
|
42
42
|
crack (0.4.5)
|
43
43
|
rexml
|
44
44
|
diff-lcs (1.4.4)
|
45
|
-
docile (1.
|
46
|
-
globalid (0.5.
|
45
|
+
docile (1.4.0)
|
46
|
+
globalid (0.5.2)
|
47
47
|
activesupport (>= 5.0)
|
48
48
|
hashdiff (1.0.1)
|
49
49
|
i18n (1.8.10)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
simplecov-html (~> 0.11)
|
85
85
|
simplecov_json_formatter (~> 0.1)
|
86
86
|
simplecov-html (0.12.3)
|
87
|
-
simplecov_json_formatter (0.1.
|
87
|
+
simplecov_json_formatter (0.1.3)
|
88
88
|
sinatra (2.1.0)
|
89
89
|
mustermann (~> 1.0)
|
90
90
|
rack (~> 2.2)
|
@@ -95,8 +95,8 @@ GEM
|
|
95
95
|
timecop (0.9.4)
|
96
96
|
tzinfo (2.0.4)
|
97
97
|
concurrent-ruby (~> 1.0)
|
98
|
-
webmock (3.
|
99
|
-
addressable (>= 2.
|
98
|
+
webmock (3.14.0)
|
99
|
+
addressable (>= 2.8.0)
|
100
100
|
crack (>= 0.3.2)
|
101
101
|
hashdiff (>= 0.4.0, < 2.0.0)
|
102
102
|
zeitwerk (2.4.2)
|
@@ -16,21 +16,18 @@ module ActiveJob
|
|
16
16
|
"worker" => JobWrapper.to_s,
|
17
17
|
"wrapped" => job.class,
|
18
18
|
"queue" => job.class.work_queue,
|
19
|
-
"
|
19
|
+
"perform_at" => Time.now.utc,
|
20
20
|
"worker_params" => [ job.serialize ]
|
21
21
|
})
|
22
22
|
end
|
23
23
|
|
24
24
|
def enqueue_at(job, timestamp) # :nodoc:
|
25
|
-
|
26
|
-
if delay < 0
|
27
|
-
delay = 0
|
28
|
-
end
|
25
|
+
time = Time.at(timestamp).utc
|
29
26
|
job.provider_job_id = Funktor.job_pusher.push({
|
30
27
|
"worker" => JobWrapper.to_s,
|
31
28
|
"wrapped" => job.class,
|
32
29
|
"queue" => job.class.work_queue,
|
33
|
-
"
|
30
|
+
"perform_at" => time,
|
34
31
|
"worker_params" => [ job.serialize ]
|
35
32
|
})
|
36
33
|
end
|
data/lib/funktor/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<h1>Retries</h1>
|
2
|
-
<form action="
|
2
|
+
<form action="./update_jobs" method="post" accept-charset="utf-8">
|
3
3
|
<input type="hidden" name="source" value="retry" />
|
4
4
|
<%= erb :table_stats_with_buttons, locals: { jobs: jobs, stat_category: 'retries' } %>
|
5
5
|
<table role="grid">
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<h1>Scheduled</h1>
|
2
|
-
<form action="
|
2
|
+
<form action="./update_jobs" method="post" accept-charset="utf-8">
|
3
3
|
<input type="hidden" name="source" value="scheduled" />
|
4
4
|
<%= erb :table_stats_with_buttons, locals: { jobs: jobs, stat_category: 'scheduled' } %>
|
5
5
|
<table role="grid">
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<tr>
|
3
3
|
<td><h5>Funktor</h5></td>
|
4
4
|
<% @activity_stats.each_pair do |stat, value| %>
|
5
|
-
<td><a href="
|
5
|
+
<td><a href="./<%= stat %>"><%= stat %>: <%= value %></a></td>
|
6
6
|
<% end %>
|
7
7
|
<td>Current time UTC: <%= Time.now.utc %></td>
|
8
8
|
</tr>
|
data/lib/funktor/web.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
require 'funktor/web/application'
|