feat(server): make async job queue limits configurable (#2316)

This commit is contained in:
Ethan Lin authored and GitHub committed 2026-11-10 21:40:13 +08:00
1 parent a3c49b13be
commit a3f46b665a
4 files changed
+36 -2

No files matched your search

+4
View File
@@ -113,6 +113,10 @@ int main(int argc, const char** argv) {
std::vector<UpscalerEntry> upscaler_cache;
std::mutex upscaler_mutex;
AsyncJobManager async_job_manager;
async_job_manager.max_pending_jobs =
static_cast<size_t>(svr_params.max_pending_jobs);
async_job_manager.completed_ttl_seconds =
static_cast<int64_t>(svr_params.completed_ttl_seconds);
ServerRuntime runtime = {
models.context.get(),
&sd_ctx_mutex,