feat(pipelines): list logs 时提供关联的 tasks 。

This commit is contained in:
Ivan
2021-03-28 19:37:16 +08:00
parent da6bc9a068
commit 032aa89b05
7 changed files with 68 additions and 21 deletions

View File

@ -69,6 +69,10 @@ export class PipelineTasksService {
return await this.repository.find({ pipelineId });
}
async listTasksByCommitHash(hash: string) {
return await this.repository.find({ commit: hash });
}
async doNextTask(pipeline: Pipeline) {
const [lckKey, tasksKey] = this.getRedisTokens(pipeline);
const redis = this.redis.getClient();