Add debugging info to tts_inference_jobs table; move app routes

This commit is contained in:
Brandon Thomas committed 2022-11-02 16:28:45 -04:00
1 parent 9a1df0cd8c
commit 8ee5eca076
4 files changed
+28 -1

No files matched your search

@@ -0,0 +1,7 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
ALTER TABLE tts_inference_jobs DROP COLUMN last_assigned_worker;
ALTER TABLE tts_inference_jobs DROP COLUMN internal_debugging_failure_reason;
@@ -0,0 +1,13 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
-- Optional internal-only debugging information in the case of failure.
ALTER TABLE tts_inference_jobs
ADD COLUMN internal_debugging_failure_reason VARCHAR(512) DEFAULT NULL
AFTER failure_reason;
-- The last worker (hostname or pod name) to touch the job, either in the case of success or failure.
ALTER TABLE tts_inference_jobs
ADD COLUMN last_assigned_worker VARCHAR(512) DEFAULT NULL
AFTER internal_debugging_failure_reason;
@@ -106,8 +106,15 @@ CREATE TABLE tts_inference_jobs (
attempt_count INT(3) NOT NULL DEFAULT 0,
-- If there is a failure, tell the user why.
-- This is user-facing, so keep it sanitized and reasonable.
failure_reason VARCHAR(512) DEFAULT NULL,
-- Optional internal-only debugging information in the case of failure.
internal_debugging_failure_reason VARCHAR(512) DEFAULT NULL,
-- The last worker (hostname or pod name) to touch the job, either in the case of success or failure.
last_assigned_worker VARCHAR(255) DEFAULT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+1 -1
View File
@@ -750,7 +750,7 @@ fn add_desktop_app_routes<T, B> (app: App<T, B>) -> App<T, B>
InitError = (),
>,
{
app.service(web::scope("/api/v1/vc")
app.service(web::scope("/v1/vc")
.service(web::resource("/report_analytics")
.route(web::post().to(post_app_analytics_handler))
.route(web::head().to(|| HttpResponse::Ok()))