feat(pipeline-tasks): 添加 部署任务查询接口和任务日志推送。

This commit is contained in:
Ivan Li
2021-03-20 14:30:26 +08:00
parent 7923ae6d41
commit cdc28cb102
4 changed files with 39 additions and 8 deletions

View File

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