Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "aiWorkflowRun" ADD COLUMN "gitRunUrl" TEXT;
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ model aiWorkflowRun {
startedAt DateTime? @db.Timestamp(3)
completedAt DateTime? @db.Timestamp(3)
gitRunId String @db.VarChar
gitRunUrl String? @db.Text
score Float? @db.DoublePrecision
status String @db.VarChar
usage Json? @db.JsonB
Expand Down
2 changes: 2 additions & 0 deletions src/shared/modules/global/workflow-queue.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class WorkflowQueueHandler implements OnModuleInit {
workflow_job: {
id: number;
run_id: string;
html_url: string;
name: string;
conclusion: string;
};
Expand Down Expand Up @@ -198,6 +199,7 @@ export class WorkflowQueueHandler implements OnModuleInit {
where: { id: aiWorkflowRunId },
data: {
gitRunId: `${event.workflow_job.run_id}`,
gitRunUrl: `${event.workflow_job.html_url}`,
jobsCount,
completedJobs: { increment: 1 },
},
Expand Down