mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-18 01:25:47 +02:00
enhance: ジョブのログを表示できるように
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user