1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 01:25:47 +02:00

enhance: ジョブのログを表示できるように

This commit is contained in:
syuilo
2025-08-01 12:54:33 +09:00
parent 2a836047e3
commit 1082145c74
9 changed files with 162 additions and 0 deletions

View File

@@ -810,6 +810,13 @@ export class QueueService {
}
}
@bindThis
public async queueGetJobLogs(queueType: typeof QUEUE_TYPES[number], jobId: string) {
const queue = this.getQueue(queueType);
const result = await queue.getJobLogs(jobId);
return result.logs;
}
@bindThis
public async queueGetJobs(queueType: typeof QUEUE_TYPES[number], jobTypes: JobType[], search?: string) {
const RETURN_LIMIT = 100;