dedicated workers nit

This commit is contained in:
Ruben Fiszel
2023-11-17 10:10:47 +01:00
parent d1d43765c0
commit 9a0ef97eb5
2 changed files with 13 additions and 5 deletions
@@ -634,7 +634,7 @@
{/if}
</div>
</Section>
<Section label="Dedicated Workers">
<Section label="Dedicated Workers" eeOnly>
<Toggle
disabled={!$enterpriseLicense ||
isCloudHosted() ||
@@ -666,8 +666,9 @@
<Tooltip
>In this mode, the script is meant to be run on dedicated workers that run the
script at native speed. Can reach >1500rps per dedicated worker. Only
available on enterprise edition and for Python3, Deno and Bun. For other languages, the efficiency
is already on par with deidcated workers since they do not spawn a full runtime</Tooltip
available on enterprise edition and for Python3, Deno and Bun. For other
languages, the efficiency is already on par with deidcated workers since they
do not spawn a full runtime</Tooltip
>
</svelte:fragment>
</Section>
@@ -18,7 +18,7 @@
import { copyToClipboard } from '$lib/utils'
import Tooltip from '$lib/components/Tooltip.svelte'
import { WorkerService } from '$lib/gen'
import { Clipboard, Loader2 } from 'lucide-svelte'
import { AlertTriangle, Clipboard, Loader2 } from 'lucide-svelte'
import SimpleEditor from '$lib/components/SimpleEditor.svelte'
import { schemaToObject } from '$lib/schema'
import type { Schema } from '$lib/common'
@@ -363,7 +363,14 @@
{/if}
<div class="py-6" />
<span class="my-4 text-lg font-bold">Dedicated Worker</span>
<span class="my-4 text-lg font-bold flex items-baseline gap-8"
>Dedicated Worker {#if !$enterpriseLicense}<div
class="flex text-xs items-center gap-1 text-yellow-500 whitespace-nowrap"
>
<AlertTriangle size={16} />
EE only
</div>{/if}</span
>
<Toggle
disabled={!$enterpriseLicense || isCloudHosted()}