|
|
|
@ -1229,12 +1229,11 @@
@@ -1229,12 +1229,11 @@
|
|
|
|
|
(statsd-inc "intertube.archived") |
|
|
|
|
(statsd-counter "intertube.archived-records" records-archived) |
|
|
|
|
(conspack-encode-to-archive tar-out filename archive-data) |
|
|
|
|
(unless (string= line-code "X") |
|
|
|
|
(handler-case |
|
|
|
|
(clickhouse-insert-live clickhouse-data) |
|
|
|
|
(serious-condition (e) |
|
|
|
|
(log:error "clickhouse insert failed (adding to clickhouse-failures): err: ~A" e) |
|
|
|
|
(red:sadd "clickhouse-failures" (cpk-base64 clickhouse-data))))) |
|
|
|
|
(handler-case |
|
|
|
|
(clickhouse-insert-live clickhouse-data) |
|
|
|
|
(serious-condition (e) |
|
|
|
|
(log:error "clickhouse insert failed (adding to clickhouse-failures): err: ~A" e) |
|
|
|
|
(red:sadd "clickhouse-failures" (cpk-base64 clickhouse-data)))) |
|
|
|
|
(when (and ltid (string= line-code "X")) |
|
|
|
|
;; delete XR live-trains immediately, or else they'll stick around |
|
|
|
|
;; forever |
|
|
|
@ -1815,7 +1814,7 @@
@@ -1815,7 +1814,7 @@
|
|
|
|
|
(- archived-universal-ts 2208988800) |
|
|
|
|
filename |
|
|
|
|
*clickhouse-file* |
|
|
|
|
(nilify-zeros-parse train-id) |
|
|
|
|
train-id |
|
|
|
|
(nilify-zeros-parse lcid) |
|
|
|
|
(nilify-zeros-parse set-no) |
|
|
|
|
(nilify-zeros-parse trip-no) |
|
|
|
|