Skip to content
Closed
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
Expand Up @@ -6,6 +6,7 @@ export const statusColor: Record<JobStatus | "configured", string> = {
cancelled: colors.neutral[400],
skipped: colors.gray[400],
in_progress: colors.blue[400],
executing: colors.blue[500],
action_required: colors.yellow[400],
pending: colors.neutral[400],
failure: colors.red[400],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const statusColors = {
[JobStatus.InvalidJobAgent]: colors.amber[400],
[JobStatus.Failure]: colors.red[600],
[JobStatus.InProgress]: colors.blue[500],
[JobStatus.Executing]: colors.blue[600],
[JobStatus.Successful]: colors.green[500],
};

Expand All @@ -44,6 +45,7 @@ const statusLabels = {
[JobStatus.InvalidJobAgent]: "Invalid Job Agent",
[JobStatus.Failure]: "Failure",
[JobStatus.InProgress]: "In Progress",
[JobStatus.Executing]: "Executing",
[JobStatus.Successful]: "Successful",
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
IconCircleX,
IconClock,
IconLoader2,
IconPlayerPlay,
} from "@tabler/icons-react";
import { Handle, Position } from "reactflow";

Expand All @@ -34,6 +35,13 @@ const StatusIcon: React.FC<{
</div>
);

if (job?.status === JobStatus.Executing)
return (
<div className="rounded-full bg-blue-500 p-1 dark:text-black">
<IconPlayerPlay strokeWidth={2} />
</div>
);

if (job?.status === JobStatus.Successful)
return (
<div className="rounded-full bg-green-400 p-1 dark:text-black">
Expand Down Expand Up @@ -99,7 +107,9 @@ export const DeploymentNode: React.FC<DeploymentNodeProps> = ({ data }) => {
);

const isInProgress = latestDeployedVersions.some(
(r) => r.releaseJobTrigger.job.status === JobStatus.InProgress,
(r) =>
r.releaseJobTrigger.job.status === JobStatus.InProgress ||
r.releaseJobTrigger.job.status === JobStatus.Executing,
);
const isPending = latestDeployedVersions.some(
(r) => r.releaseJobTrigger.job.status === JobStatus.Pending,
Expand Down
1 change: 1 addition & 0 deletions apps/webservice/src/app/api/v1/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export const openapi: Swagger.SwaggerV3 = {
"cancelled",
"skipped",
"in_progress",
"executing",
"action_required",
"pending",
"failure",
Expand Down
1 change: 1 addition & 0 deletions openapi.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3491,6 +3491,7 @@
"cancelled",
"skipped",
"in_progress",
"executing",
"action_required",
"pending",
"failure",
Expand Down
1 change: 1 addition & 0 deletions packages/db/drizzle/0083_legal_falcon.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TYPE "job_status" ADD VALUE 'executing';
Loading
Loading