update tag translation now can run as a normal task

This commit is contained in:
2024-10-03 19:59:03 +08:00
parent 8b5bc62a90
commit 2864d4d107
7 changed files with 143 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import type { Task } from "../task.ts";
import type { TaskEventData } from "../task_manager.ts";
import type { DownloadConfig } from "../tasks/download.ts";
import type { ExportZipConfig } from "../tasks/export_zip.ts";
import type { UpdateTagTranslationConfig } from "../tasks/update_tag_translation.ts";
import type { DiscriminatedUnion } from "../utils.ts";
export type TaskServerSocketData =
@@ -22,6 +23,7 @@ type EventMap = {
cfg?: DownloadConfig;
};
new_export_zip_task: { gid: number | bigint; cfg?: ExportZipConfig };
new_update_tag_translation_task: { cfg?: UpdateTagTranslationConfig };
};
export type TaskClientSocketData =