mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-01 16:08:30 +00:00
Add job table keepalive column
This commit is contained in:
1 parent
ebd3f52717
commit
9ab977d016
3 files changed
+19
No files matched your search
@@ -0,0 +1,5 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
ALTER TABLE generic_inference_jobs DROP COLUMN is_keepalive_required;
|
||||
@@ -0,0 +1,7 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
ALTER TABLE generic_inference_jobs
|
||||
ADD COLUMN is_keepalive_required BOOLEAN NOT NULL DEFAULT FALSE
|
||||
AFTER priority_level;
|
||||
@@ -101,6 +101,13 @@ CREATE TABLE generic_inference_jobs (
|
||||
-- - (There will be future levels for paid Twitch and social FakeYou rewards.)
|
||||
priority_level SMALLINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
|
||||
-- For non-premium workloads (or some other workloads), we may require that the
|
||||
-- user remains on the website. This will help us kill jobs if the user leaves.
|
||||
-- The state for this keepalive signal will be job-type dependent and may live
|
||||
-- in Redis or some other system. Typically the frontend job status polling will
|
||||
-- populate this keepalive signal (eg. in a Redis key with TTL).
|
||||
is_keepalive_required BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
|
||||
-- TODO: add is_for_storyteller_product
|
||||
is_from_premium_user BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
is_from_api_user BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
|
||||
Reference in new issue
Block a user