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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"@temporalio/activity": "1.12.1",
"@temporalio/client": "1.12.1",
"@temporalio/common": "1.12.1",
"@temporalio/proto": "1.12.1",
"@temporalio/proto": "1.13.0",
"@temporalio/testing": "1.12.1",
"@temporalio/worker": "1.12.1",
"@temporalio/workflow": "1.12.1",
Expand Down
12 changes: 10 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/labstack/echo/v4 v4.13.4
github.com/stretchr/testify v1.10.0
github.com/urfave/cli/v2 v2.3.0
go.temporal.io/api v1.50.0
go.temporal.io/api v1.51.0
golang.org/x/net v0.40.0
golang.org/x/oauth2 v0.30.0
google.golang.org/grpc v1.66.0
Expand Down
4 changes: 2 additions & 2 deletions server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6Kllzaw
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo=
github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
go.temporal.io/api v1.50.0 h1:7s8Cn+fKfNx9G0v2Ge9We6X2WiCA3JvJ9JryeNbx1Bc=
go.temporal.io/api v1.50.0/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM=
go.temporal.io/api v1.51.0 h1:9+e14GrIa7nWoWoudqj/PSwm33yYjV+u8TAR9If7s/g=
go.temporal.io/api v1.51.0/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM=
golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8=
golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw=
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
Expand Down
12 changes: 12 additions & 0 deletions src/lib/components/lines-and-dots/workflow-details.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@
queue: workflow?.taskQueue,
})}
/>

{#if workflow?.priority}
{@const { priorityKey, fairnessKey } = workflow.priority}
{#if priorityKey}
<DetailListLabel>{translate('workflows.priority')}</DetailListLabel>
<DetailListTextValue text={String(priorityKey)} />
{/if}
{#if fairnessKey}
<DetailListLabel>{translate('workflows.fairness')}</DetailListLabel>
<DetailListTextValue text={fairnessKey} />
{/if}
{/if}
</DetailListColumn>

{#if deployment}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,20 @@
activity.lastWorkerIdentity,
)}
{/if}
{#if activity.priority}
{#if activity.priority.priorityKey}
{@render detail(
translate('workflows.priority'),
activity.priority.priorityKey,
)}
{/if}
{#if activity.priority.fairnessKey}
{@render detail(
translate('workflows.fairness'),
activity.priority.fairnessKey,
)}
{/if}
{/if}
</div>
<div class="flex w-full flex-col gap-4 md:flex-1 xl:w-1/2">
{#if failed}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/i18n/locales/en/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,6 @@ export const Strings = {
'schedule-event-id': 'Scheduled Event ID',
'schedule-to-close-timeout': 'Schedule to Close Timeout',
'related-events': 'Related Events',
priority: 'Priority',
fairness: 'Fairness',
} as const;
13 changes: 13 additions & 0 deletions src/lib/models/__snapshots__/workflow-execution.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`toWorkflowExecution > should match the snapshot for Canceled workflows
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "346e7a24-c660-4f91-a777-ffe3274d8144",
"searchAttributes": {
Expand Down Expand Up @@ -78,6 +79,7 @@ exports[`toWorkflowExecution > should match the snapshot for Completed workflows
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "202dcff6-7f35-4c65-995c-bcadce524fb1",
"searchAttributes": {
Expand Down Expand Up @@ -126,6 +128,7 @@ exports[`toWorkflowExecution > should match the snapshot for Failed workflows 1`
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "7e00b341-c579-4bb5-9e28-810d34ef4329",
"searchAttributes": {
Expand Down Expand Up @@ -199,6 +202,7 @@ exports[`toWorkflowExecution > should match the snapshot for Running workflows 1
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "2a7ba421-f74b-4b8b-b9d8-e6e30e4caac7",
"searchAttributes": {
Expand Down Expand Up @@ -281,6 +285,7 @@ exports[`toWorkflowExecution > should match the snapshot for Terminated workflow
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "16c5fbe5-f82d-43c1-acbc-18c65c449ace",
"searchAttributes": {
Expand Down Expand Up @@ -338,6 +343,7 @@ exports[`toWorkflowExecution > should match the snapshot for TimedOut workflows
"startedTime": null,
"state": "Scheduled",
},
"priority": undefined,
"rootExecution": undefined,
"runId": "445a17cb-6cb4-4508-bc59-187d08c6c6e2",
"searchAttributes": {
Expand Down Expand Up @@ -387,6 +393,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "346e7a24-c660-4f91-a777-ffe3274d8144",
"searchAttributes": {
Expand Down Expand Up @@ -432,6 +439,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "202dcff6-7f35-4c65-995c-bcadce524fb1",
"searchAttributes": {
Expand Down Expand Up @@ -477,6 +485,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "7e00b341-c579-4bb5-9e28-810d34ef4329",
"searchAttributes": {
Expand Down Expand Up @@ -518,6 +527,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "2a7ba421-f74b-4b8b-b9d8-e6e30e4caac7",
"searchAttributes": {
Expand Down Expand Up @@ -563,6 +573,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "dfd4039d-4bc0-4864-9a24-85d136814977",
"searchAttributes": {
Expand Down Expand Up @@ -608,6 +619,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "16c5fbe5-f82d-43c1-acbc-18c65c449ace",
"searchAttributes": {
Expand Down Expand Up @@ -653,6 +665,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "445a17cb-6cb4-4508-bc59-187d08c6c6e2",
"searchAttributes": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`toWorkflowExecution > should match the snapshot for Canceled workflows
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "346e7a24-c660-4f91-a777-ffe3274d8144",
"searchAttributes": {
Expand Down Expand Up @@ -78,6 +79,7 @@ exports[`toWorkflowExecution > should match the snapshot for Completed workflows
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "202dcff6-7f35-4c65-995c-bcadce524fb1",
"searchAttributes": {
Expand Down Expand Up @@ -126,6 +128,7 @@ exports[`toWorkflowExecution > should match the snapshot for Failed workflows 1`
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "7e00b341-c579-4bb5-9e28-810d34ef4329",
"searchAttributes": {
Expand Down Expand Up @@ -199,6 +202,7 @@ exports[`toWorkflowExecution > should match the snapshot for Running workflows 1
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "2a7ba421-f74b-4b8b-b9d8-e6e30e4caac7",
"searchAttributes": {
Expand Down Expand Up @@ -281,6 +285,7 @@ exports[`toWorkflowExecution > should match the snapshot for Terminated workflow
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": null,
"priority": undefined,
"rootExecution": undefined,
"runId": "16c5fbe5-f82d-43c1-acbc-18c65c449ace",
"searchAttributes": {
Expand Down Expand Up @@ -338,6 +343,7 @@ exports[`toWorkflowExecution > should match the snapshot for TimedOut workflows
"startedTime": null,
"state": "Scheduled",
},
"priority": undefined,
"rootExecution": undefined,
"runId": "445a17cb-6cb4-4508-bc59-187d08c6c6e2",
"searchAttributes": {
Expand Down Expand Up @@ -387,6 +393,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "346e7a24-c660-4f91-a777-ffe3274d8144",
"searchAttributes": {
Expand Down Expand Up @@ -432,6 +439,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "202dcff6-7f35-4c65-995c-bcadce524fb1",
"searchAttributes": {
Expand Down Expand Up @@ -477,6 +485,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "7e00b341-c579-4bb5-9e28-810d34ef4329",
"searchAttributes": {
Expand Down Expand Up @@ -518,6 +527,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "2a7ba421-f74b-4b8b-b9d8-e6e30e4caac7",
"searchAttributes": {
Expand Down Expand Up @@ -563,6 +573,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "dfd4039d-4bc0-4864-9a24-85d136814977",
"searchAttributes": {
Expand Down Expand Up @@ -608,6 +619,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "16c5fbe5-f82d-43c1-acbc-18c65c449ace",
"searchAttributes": {
Expand Down Expand Up @@ -653,6 +665,7 @@ exports[`toWorkflowExecutions > should match the snapshot 1`] = `
"pendingChildren": [],
"pendingNexusOperations": [],
"pendingWorkflowTask": undefined,
"priority": undefined,
"rootExecution": undefined,
"runId": "445a17cb-6cb4-4508-bc59-187d08c6c6e2",
"searchAttributes": {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/models/workflow-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const toWorkflowExecution = (
const callbacks = toCallbacks(response?.callbacks);
const rootExecution = response.workflowExecutionInfo?.rootExecution;
const versioningInfo = response.workflowExecutionInfo?.versioningInfo;
const priority = response.workflowExecutionInfo?.priority;
const workflowExtendedInfo = response.workflowExtendedInfo ?? {};

let summary;
Expand Down Expand Up @@ -155,6 +156,7 @@ export const toWorkflowExecution = (
pendingWorkflowTask,
callbacks,
versioningInfo,
priority,
summary,
details,
parentNamespaceId,
Expand Down
1 change: 1 addition & 0 deletions src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export type WorkflowExecutionInfo =
export type WorkflowVersionTimpstamp =
temporal.api.common.v1.IWorkerVersionStamp;
export type SearchAttribute = temporal.api.common.v1.ISearchAttributes;
export type Priority = temporal.api.common.v1.IPriority;

// api response
export type Payload = temporal.api.common.v1.IPayload;
Expand Down
2 changes: 2 additions & 0 deletions src/lib/types/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type {
Memo,
Payloads,
PendingWorkflowTaskInfo,
Priority,
WorkflowExecutionStatus,
WorkflowExtendedInfo,
WorkflowVersionTimpstamp,
Expand Down Expand Up @@ -182,6 +183,7 @@ export type WorkflowExecution = {
canBeTerminated: boolean;
callbacks: Callback[];
versioningInfo?: VersioningInfo;
priority?: Priority;
summary?: Payload;
details?: Payload;
workflowExtendedInfo: WorkflowExtendedInfo;
Expand Down
Loading