Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Worker insights#3087

Draft
Alex-Tideman wants to merge 13 commits intomain from
worker-insights
Draft

Worker insights #3087
Alex-Tideman wants to merge 13 commits intomain from
worker-insights

Conversation

@Alex-Tideman
Copy link
Collaborator

@Alex-Tideman Alex-Tideman commented Jan 12, 2026

Description & motivation 💭

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Jan 12, 2026
edited
Loading

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Feb 21, 2026 1:07am

Request Review

Copy link
Contributor

temporal-cicd bot commented Jan 12, 2026
edited
Loading

Warnings
⚠️

📊 Strict Mode: 103 errors in 14 files (8.7% of 1185 total)

src/lib/utilities/route-for.ts (1)
  • L283:4: Type 'string | undefined' is not assignable to type 'string'.
src/lib/utilities/route-for-api.ts (8)
  • L68:48: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
  • L74:50: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
  • L76:4: Type 'string | null' is not assignable to type 'string'.
  • L103:8: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ namespace: string; workflowId: string; scheduleId: string; queue: string; queryType: string; signalName: string; updateName: string; batchJobId: string; runId: string; activityId: string; endpointId: string; deploymentName: string; version: string; workerInstanceKey: string; }'.
  • L103:38: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Partial'.
  • L105:8: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ namespace: string; workflowId: string; scheduleId: string; queue: string; queryType: string; signalName: string; updateName: string; batchJobId: string; runId: string; activityId: string; endpointId: string; deploymentName: string; version: string; workerInstanceKey: string; }'.
  • L105:57: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Partial'.
  • L191:16: This overload signature is not compatible with its implementation signature.
src/lib/utilities/screaming-enums.ts (3)
  • L84:14: Type 'undefined' is not assignable to type 'PendingActivityState'.
  • L91:14: Type 'PendingNexusOperationState.PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED | undefined' is not assignable to type 'PendingNexusOperationState'.
  • L98:14: Type 'CallbackState.CALLBACK_STATE_UNSPECIFIED | undefined' is not assignable to type 'CallbackState'.
src/lib/services/worker-service.ts (1)
  • L27:8: Type 'string | null | undefined' is not assignable to type 'string'.
src/lib/components/task-queue/worker-info.svelte (44)
  • L148:45: 'slots.currentUsedSlots' is possibly 'null' or 'undefined'.
  • L206:11: 'heartbeat' is possibly 'null' or 'undefined'.
  • L206:11: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L211:41: 'heartbeat' is possibly 'null' or 'undefined'.
  • L211:41: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L216:11: 'heartbeat' is possibly 'null' or 'undefined'.
  • L222:11: 'heartbeat' is possibly 'null' or 'undefined'.
  • L222:11: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L241:17: 'heartbeat' is possibly 'null' or 'undefined'.
  • L241:17: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L241:17: 'heartbeat.hostInfo.currentHostCpuUsage' is possibly 'null' or 'undefined'.
  • L247:14: 'heartbeat' is possibly 'null' or 'undefined'.
  • L247:14: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L247:14: Argument of type 'number | null | undefined' is not assignable to parameter of type 'number'.
  • L259:17: 'heartbeat' is possibly 'null' or 'undefined'.
  • L259:17: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L259:17: 'heartbeat.hostInfo.currentHostMemUsage' is possibly 'null' or 'undefined'.
  • L265:14: 'heartbeat' is possibly 'null' or 'undefined'.
  • L265:14: 'heartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L265:14: Argument of type 'number | null | undefined' is not assignable to parameter of type 'number'.
  • L28:49: 'heartbeat' is possibly 'null' or 'undefined'.
  • L28:49: Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.
  • L47:41: 'heartbeat' is possibly 'null' or 'undefined'.
  • L56:12: Type 'string | null | undefined' is not assignable to type 'string'.
  • L56:19: 'heartbeat' is possibly 'null' or 'undefined'.
  • L59:11: 'heartbeat' is possibly 'null' or 'undefined'.
  • L65:20: 'heartbeat' is possibly 'null' or 'undefined'.
  • L74:22: 'heartbeat' is possibly 'null' or 'undefined'.
  • L80:21: 'heartbeat' is possibly 'null' or 'undefined'.
  • L88:15: 'heartbeat' is possibly 'null' or 'undefined'.
  • L88:15: 'heartbeat.sdkName' is possibly 'null' or 'undefined'.
  • L89:10: Type 'string | null | undefined' is not assignable to type 'string'.
  • L89:19: 'heartbeat' is possibly 'null' or 'undefined'.
  • L99:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L99:8: Argument of type 'IWorkerSlotsInfo | null | undefined' is not assignable to parameter of type 'IWorkerSlotsInfo'.
  • L100:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L104:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L104:8: Argument of type 'IWorkerSlotsInfo | null | undefined' is not assignable to parameter of type 'IWorkerSlotsInfo'.
  • L105:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L109:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L109:8: Argument of type 'IWorkerSlotsInfo | null | undefined' is not assignable to parameter of type 'IWorkerSlotsInfo'.
  • L110:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L114:8: 'heartbeat' is possibly 'null' or 'undefined'.
  • L114:8: Argument of type 'IWorkerSlotsInfo | null | undefined' is not assignable to parameter of type 'IWorkerSlotsInfo'.
src/lib/components/task-queue/worker-table-cell.svelte (1)
  • L32:26: Type 'string | undefined' is not assignable to type 'string'.
src/lib/components/task-queue/worker-table-row.svelte (19)
  • L20:27: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L20:27: Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.
  • L29:8: Type 'string | null | undefined' is not assignable to type 'string'.
  • L29:15: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L35:8: Type 'string | null | undefined' is not assignable to type 'string'.
  • L35:15: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L41:8: Type 'string | null | undefined' is not assignable to type 'string'.
  • L41:15: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L41:15: 'worker.workerHeartbeat.hostInfo' is possibly 'null' or 'undefined'.
  • L47:8: Type 'string | null | undefined' is not assignable to type 'string'.
  • L47:15: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L50:10: Type 'string | null | undefined' is not assignable to type 'string'.
  • L50:29: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L61:8: Type 'string | null | undefined' is not assignable to type 'string'.
  • L61:15: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L65:15: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • L65:15: 'worker.workerHeartbeat.sdkName' is possibly 'null' or 'undefined'.
  • L66:10: Type 'string | null | undefined' is not assignable to type 'string'.
  • L66:19: 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
src/lib/components/task-queue/worker-table.svelte (1)
  • L38:5: Type '(err: APIErrorResponse) => void' is not assignable to type '(error: unknown) => void | undefined'.
src/lib/components/task-queue/worker-totals.svelte (2)
  • L11:32: Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.
  • L21:32: Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.
src/lib/components/workflow/workflow-summary.svelte (7)
  • L42:10: Type 'string | undefined' is not assignable to type 'string'.
  • L48:10: Type 'string | undefined' is not assignable to type 'string'.
  • L54:10: Type 'string | undefined' is not assignable to type 'string'.
  • L63:10: Type 'string | undefined' is not assignable to type 'string'.
  • L66:12: Type 'string | undefined' is not assignable to type 'string'.
  • L67:12: Type 'string | undefined' is not assignable to type 'string'.
  • L74:10: Type 'string | undefined' is not assignable to type 'string'.
src/lib/layouts/workflow-header.svelte (13)
  • L133:37: Argument of type 'WorkflowExecution | null' is not assignable to parameter of type 'WorkflowExecution'.
  • L134:45: Argument of type 'WorkflowExecution | null' is not assignable to parameter of type 'WorkflowExecution'.
  • L138:13: Type 'boolean | undefined' is not assignable to type 'boolean'.
  • L139:13: Type 'boolean | undefined' is not assignable to type 'boolean'.
  • L141:13: Type 'WorkflowExecution | null' is not assignable to type 'WorkflowExecution'.
  • L166:9: Type 'boolean | undefined' is not assignable to type 'boolean'.
  • L167:9: Type 'boolean | undefined' is not assignable to type 'boolean'.
  • L169:9: Type 'WorkflowExecution | null' is not assignable to type 'WorkflowExecution'.
  • L177:20: Type 'WorkflowExecution | null' is not assignable to type 'WorkflowExecution'.
  • L233:12: Type 'string | undefined' is not assignable to type 'string'.
  • L255:11: 'workflow' is possibly 'null'.
  • L297:12: 'workflow' is possibly 'null'.
  • L297:12: 'workflow.searchAttributes' is possibly 'undefined'.
src/lib/pages/deployments.svelte (1)
  • L44:5: Type '(err: APIErrorResponse) => void' is not assignable to type '(error: unknown) => void | undefined'.
src/routes/(app)/+layout.svelte (1)
  • L62:23: Argument of type '(namespace: string) => { namespace: string; onClick: (namespace: string) => void; }' is not assignable to parameter of type '(value: string | null | undefined, index: number, array: (string | null | undefined)[]) => { namespace: string; onClick: (namespace: string) => void; }'.
src/routes/(app)/namespaces/[namespace]/workers/[instance]/+page.svelte (1)
  • L30:14: Type 'IWorkerInfo | null | undefined' is not assignable to type 'IWorkerInfo'.

Generated by 🚫 dangerJS against 722bd81

{slots.currentUsedSlots ?? 0}
</p>
<p class="font-mono text-3xl font-semibold">
{#if slots.currentAvailableSlots}
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 5, 2026
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'slots.currentUsedSlots' is possibly 'null' or 'undefined'.

updateQueryParameters({
parameter: 'query',
value: '',
url: page.url,
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type 'string | undefined' is not assignable to type 'string'.

{#if !error}
<PaginatedTable
let:visibleItems
{onFetch}
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type '(err: APIErrorResponse) => void' is not assignable to type '(error: unknown) => void | undefined'.

@@ -62,7 +62,7 @@
<div class="h-0.5 rounded-full bg-inverse"></div>
<WorkflowDetail
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type 'string | undefined' is not assignable to type 'string'.

content={workflow?.taskQueue}
href={routeForWorkers({
href={routeForWorkflowWorkers({
namespace: $page.params.namespace,
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type 'string | undefined' is not assignable to type 'string'.

href={routeForWorkers({
href={routeForWorkflowWorkers({
namespace: $page.params.namespace,
workflow: workflow?.id,
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type 'string | undefined' is not assignable to type 'string'.

let { worker }: Props = $props();

const { namespace } = $derived(page.params);
const heartbeat = $derived(worker.workerHeartbeat);
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'heartbeat' is possibly 'null' or 'undefined'.
  • ⚠️ Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.

<div class="flex flex-col gap-4">
<div class="flex flex-col gap-2">
<div class="flex items-center gap-3">
<WorkerStatus {status} />
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'heartbeat' is possibly 'null' or 'undefined'.

<span class="text-secondary">Task Queue</span>
<Link
href={routeForTaskQueue({
namespace,
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'heartbeat' is possibly 'null' or 'undefined'.
  • ⚠️ Type 'string | null | undefined' is not assignable to type 'string'.

namespace,
queue: heartbeat.taskQueue,
})}
>
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'heartbeat' is possibly 'null' or 'undefined'.

</div>
<div class="flex flex-col">
<span class="text-secondary">Start</span>
<Timestamp
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'heartbeat' is possibly 'null' or 'undefined'.

{filterable}
>
<SdkLogo
sdk={worker.workerHeartbeat.sdkName.split('-')[1]}
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ 'worker.workerHeartbeat' is possibly 'null' or 'undefined'.
  • ⚠️ Type 'string | null | undefined' is not assignable to type 'string'.

const totalActive = $derived(
workersInfo.reduce(
(acc, worker) =>
acc +
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.

const totalInactive = $derived(
workersInfo.reduce(
(acc, worker) =>
acc +
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Argument of type 'WorkerStatus | null | undefined' is not assignable to parameter of type 'WorkerStatus | undefined'.

request,
params: {
maximumPageSize: String(pageSize),
nextPageToken: token,
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type 'string | null | undefined' is not assignable to type 'string'.

</div>
</div>
</header>
{#await describeWorker({ namespace, workerInstanceKey }) then data}
Copy link
Contributor

@temporal-cicd temporal-cicd bot Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Type 'IWorkerInfo | null | undefined' is not assignable to type 'IWorkerInfo'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@temporal-cicd temporal-cicd[bot] temporal-cicd[bot] left review comments

@rossedfort rossedfort Awaiting requested review from rossedfort rossedfort will be requested when the pull request is marked ready for review rossedfort is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /