Skip to content

Commit

Permalink
Replace CodeBanner text with better temporary one (#8077)
Browse files Browse the repository at this point in the history
Co-authored-by: pleek91 <pleek91@gmail.com>
  • Loading branch information
2 people authored and madkinsz committed Jan 6, 2023
1 parent 6854ec1 commit b6b17fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions orion-ui/src/pages/WorkerPoolQueue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

<p-layout-well class="worker-pool-queue__body">
<template #header>
<!-- Update banner with correct information -->
<CodeBanner :command="workerPoolQueueCliCommand" title="Worker pool queue is ready to go!" subtitle="Worker Pool Queue description" />
<CodeBanner :command="workerPoolQueueCliCommand" 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." />
</template>

<p-tabs :tabs="tabs">
Expand Down Expand Up @@ -48,7 +47,11 @@
const workerPoolQueuesSubscription = useSubscription(api.workerPoolQueues.getWorkerPoolQueueByName, [workerPoolName.value, workerPoolQueueName.value], subscriptionOptions)
const workerPoolQueue = computed(() => workerPoolQueuesSubscription.response)
const workerPoolQueueCliCommand = computed(() => 'code snippet for worker pool queue')
const workerPoolWorkersSubscription = useSubscription(api.workerPoolWorkers.getWorkers, [workerPoolName.value], subscriptionOptions)
const workerPoolWorkers = computed(() => workerPoolWorkersSubscription.response ?? [])
const workerPoolWorkerName = computed(() => workerPoolWorkers.value[0]?.name ?? '<worker name>')
const workerPoolQueueCliCommand = computed(() => `prefect worker start --pool ${workerPoolName.value} --name ${workerPoolWorkerName.value} *--queue ${workerPoolQueueName.value}`)
const flowRunFilter = useFlowRunFilter({ workerPoolQueueName: [workerPoolQueueName.value] })
Expand Down

0 comments on commit b6b17fb

Please sign in to comment.