mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
feat(ugc): models with no bricks are "empty", not failed
A model with no bricks has nothing to make: it gets its own state (is_optimized = 3), isn't counted as a failure or retried, shows as Empty on the UGC page (with its own filter and count), in the status and in Prometheus, and its downloads answer 404 like HKX. State names come from the enum (magic_enum). Migrations dlu/mysql/87 and dlu/sqlite/70 move the rows that failed only because they had no bricks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -151,7 +151,9 @@ Migrations `dlu/mysql/81_ugc_processing.sql` and `dlu/sqlite/64_ugc_processing.s
|
||||
that aren't there yet).
|
||||
|
||||
`ugc`: `is_optimized` (existing) is 0 until the model has been processed, 1 once its files are made, 2 when processing
|
||||
failed. New: `processed_at` (Unix seconds of the last attempt), `process_attempts`, `process_error` (the last failure's
|
||||
failed, 3 when there was nothing to make (the model has no bricks; not a failure, never retried, counted and shown as
|
||||
"empty", answered with 404 like HKX so the client doesn't wait; migrations 87/70 move the rows that had failed only for
|
||||
that). The names come from `IUgc::eProcessState` (`IUgc::ProcessStateName`). New: `processed_at` (Unix seconds of the last attempt), `process_attempts`, `process_error` (the last failure's
|
||||
reason, empty when none). `bake_ao` (existing) records whether lighting was baked into the model. Changing a model's
|
||||
LXFML (`UpdateUgcModelData`) sets it back to unprocessed.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user