mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 09:15:28 +00:00
feat(ugc): queue_on_property_save: only queued models are made, a property's are queued when it is saved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -420,8 +420,8 @@ void UgcProcessor::Poll() {
|
||||
std::vector<Job> jobs;
|
||||
std::vector<IUgc::PendingModel> models;
|
||||
// Models staff asked to be made again come first too: polled even when the queue is full, to its front
|
||||
if (limit > 0) models = Database::Get()->GetUgcModelsToProcess(limit);
|
||||
else models = Database::Get()->GetUgcModelsToProcess(buildLimit, true);
|
||||
if (limit > 0) models = Database::Get()->GetUgcModelsToProcess(limit, false, limits.queuedOnly);
|
||||
else models = Database::Get()->GetUgcModelsToProcess(buildLimit, true, limits.queuedOnly);
|
||||
for (auto& model : models) {
|
||||
if (m_InFlight.contains({ Kind::MODEL, model.id })) continue;
|
||||
Job job{ Kind::MODEL, model.id, model.attempts, UgcJobs::LxfmlFromBlob(model.lxfml) };
|
||||
|
||||
Reference in New Issue
Block a user