Skip to content

Commit

Permalink
Small work pools UI updates (#8257)
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle authored and madkinsz committed Jan 26, 2023
1 parent 6f14ca0 commit dccf5b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orion-ui/src/components/ContextSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p-context-nav-item title="Flows" icon="Flow" :to="routes.flows()" />
<p-context-nav-item title="Deployments" icon="LocationMarkerIcon" :to="routes.deployments()" />
<p-context-nav-item v-if="canSeeWorkPools" title="Work Pools" icon="DatabaseIcon" :to="routes.workPools()" />
<p-context-nav-item title="Work Queues" icon="DatabaseIcon" :to="routes.workQueues()" />
<p-context-nav-item v-if="!canSeeWorkPools" title="Work Queues" icon="DatabaseIcon" :to="routes.workQueues()" />
<p-context-nav-item title="Blocks" icon="CubeIcon" :to="routes.blocks()" />
<p-context-nav-item title="Notifications" icon="BellIcon" :to="routes.notifications()" />
<p-context-nav-item title="Task Run Concurrency" icon="Task" :to="routes.concurrencyLimits()" />
Expand Down
6 changes: 3 additions & 3 deletions orion-ui/src/pages/WorkPoolQueue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<p-layout-well class="work-pool-queue__body">
<template #header>
<CodeBanner :command="workPoolQueueCliCommand" title="Worker pool queue is ready to go!" subtitle="Work queues are scoped to a specific work pool to ensure that the work put into a queue will only be picked up by a specific type of worker." />
<CodeBanner :command="workPoolQueueCliCommand" title="Work queue is ready to go!" subtitle="Work queues are scoped to a work pool to allow agents to pull from groups of queues with different priorities." />
</template>

<p-tabs :tabs="tabs">
Expand Down Expand Up @@ -50,9 +50,9 @@
const workPoolWorkersSubscription = useSubscription(api.workPoolWorkers.getWorkers, [workPoolName.value], subscriptionOptions)
const workPoolWorkers = computed(() => workPoolWorkersSubscription.response ?? [])
const workPoolWorkerName = computed(() => workPoolWorkers.value[0]?.name ?? '<worker name>')
const workPoolQueueCliCommand = computed(() => `prefect worker start --name ${workPoolWorkerName.value} --type process --pool ${workPoolName.value}`)
const workPoolQueueCliCommand = computed(() => `prefect agent start --pool ${workPoolName.value} --queue ${workPoolQueueName.value}`)
const flowRunFilter = useFlowRunFilter({ workPoolQueueName: [workPoolQueueName.value] })
const flowRunFilter = useFlowRunFilter({ workPoolQueueName: [workPoolQueueName.value], workPoolName: [workPoolName.value] })
const tabs = computed(() => {
const values = ['Upcoming Runs', 'Runs']
Expand Down

0 comments on commit dccf5b0

Please sign in to comment.