improve: unused imports in snapshotTick.ts

This commit is contained in:
alikia2x (寒寒) 2025-04-14 05:21:06 +08:00
parent e0a19499e1
commit c7dd1cfc2e
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -1,25 +1,21 @@
import { Job } from "bullmq"; import { Job } from "bullmq";
import { db } from "db/init.ts"; import { db } from "db/init.ts";
import { getLatestVideoSnapshot, getVideosNearMilestone } from "db/snapshot.ts";
import { import {
bulkGetVideosWithoutProcessingSchedules, bulkGetVideosWithoutProcessingSchedules,
bulkSetSnapshotStatus, bulkSetSnapshotStatus,
getBulkSnapshotsInNextSecond, getBulkSnapshotsInNextSecond,
getSnapshotsInNextSecond, getSnapshotsInNextSecond,
getVideosWithoutActiveSnapshotSchedule,
scheduleSnapshot, scheduleSnapshot,
setSnapshotStatus, setSnapshotStatus,
snapshotScheduleExists, snapshotScheduleExists,
videoHasProcessingSchedule, videoHasProcessingSchedule,
} from "db/snapshotSchedule.ts"; } from "db/snapshotSchedule.ts";
import { HOUR, MINUTE, SECOND, WEEK } from "@std/datetime"; import { HOUR, MINUTE, SECOND } from "@std/datetime";
import logger from "log/logger.ts"; import logger from "log/logger.ts";
import { SnapshotQueue } from "mq/index.ts"; import { SnapshotQueue } from "mq/index.ts";
import { insertVideoSnapshot } from "mq/task/getVideoStats.ts"; import { insertVideoSnapshot } from "mq/task/getVideoStats.ts";
import { NetSchedulerError } from "@core/net/delegate.ts"; import { NetSchedulerError } from "@core/net/delegate.ts";
import { getBiliVideoStatus, setBiliVideoStatus } from "db/allData.ts"; import { getBiliVideoStatus, setBiliVideoStatus } from "db/allData.ts";
import { truncate } from "utils/truncate.ts";
import { lockManager } from "mq/lockManager.ts";
import { getSongsPublihsedAt } from "db/songs.ts"; import { getSongsPublihsedAt } from "db/songs.ts";
import { getAdjustedShortTermETA } from "../scheduling.ts"; import { getAdjustedShortTermETA } from "../scheduling.ts";
import { getRegularSnapshotInterval } from "../task/regularSnapshotInterval.ts"; import { getRegularSnapshotInterval } from "../task/regularSnapshotInterval.ts";