kiba-plus 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kiba/plus/job.rb +3 -3
- data/lib/kiba/plus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccfeb1e0e0d0597a534850d23ce04f5cee5114ec
|
4
|
+
data.tar.gz: c40ac9e7aefeaea658074cc2000978476ad4f549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b5fc63b73b49e96f1a82bdd8be7b763c891787fb357d8fb37e3e98f4393a91ea8d65f23250cb26dca83fae05d6e79f3e3a0359044d1ab9e9e39b2a31728814f
|
7
|
+
data.tar.gz: 96f7bb6eb6c0273f24f0d71d04417d50f9e7ab548309503d56201c2a78c63b2117a6f42e9f79ea9a5c0b4ebd86385ba4989ea2e45015d1e65ce7f4241fc776cb
|
data/lib/kiba/plus/job.rb
CHANGED
@@ -90,7 +90,7 @@ module Kiba
|
|
90
90
|
job_name,
|
91
91
|
created_at,
|
92
92
|
status) VALUES
|
93
|
-
(NULL, '#{job_name}', '#{start_at.
|
93
|
+
(NULL, '#{job_name}', '#{start_at.utc.strftime("%Y-%m-%dT%H:%M:%S.%L")}', 'executing')
|
94
94
|
SQL
|
95
95
|
Kiba::Plus.logger.info sql
|
96
96
|
@client.query(sql)
|
@@ -106,7 +106,7 @@ module Kiba
|
|
106
106
|
job_name,
|
107
107
|
created_at,
|
108
108
|
status) VALUES
|
109
|
-
(NULL, '#{job_name}', '#{start_at.
|
109
|
+
(NULL, '#{job_name}', '#{start_at.utc.strftime("%Y-%m-%dT%H:%M:%S.%L")}', 'executing') RETURNING id
|
110
110
|
SQL
|
111
111
|
Kiba::Plus.logger.info sql
|
112
112
|
@client.query(sql)
|
@@ -143,7 +143,7 @@ module Kiba
|
|
143
143
|
end
|
144
144
|
|
145
145
|
def complete_job
|
146
|
-
sql =
|
146
|
+
sql = %Q/UPDATE #{job_table_name} SET status = 'completed', completed_at = '#{completed_at.utc.strftime("%Y-%m-%dT%H:%M:%S.%L")}' WHERE id = #{job_id} AND job_name = '#{job_name}'/
|
147
147
|
Kiba::Plus.logger.info sql
|
148
148
|
@client.query(sql)
|
149
149
|
end
|
data/lib/kiba/plus/version.rb
CHANGED