diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 271729e71c..685cff6844 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1426,6 +1426,16 @@ dependencies = [ "version_check", ] +[[package]] +name = "gethostname" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0176e0459c2e4a1fe232f984bca6890e681076abb9934f6cea7c326f3fc47818" +dependencies = [ + "libc", + "windows-targets 0.48.0", +] + [[package]] name = "getopts" version = "0.2.21" @@ -5096,6 +5106,7 @@ dependencies = [ "chrono", "dotenv", "futures", + "gethostname", "git-version", "lazy_static", "once_cell", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index e758b7765a..10a32977e0 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -54,7 +54,7 @@ lazy_static.workspace = true once_cell.workspace = true prometheus.workspace = true uuid.workspace = true - +gethostname.workspace = true [dev-dependencies] serde_json.workspace = true @@ -163,4 +163,5 @@ once_cell = "1.17.1" rsmq_async = { version = "5.1.5" } gosyn = "0.2.2" bytes = "1.4.0" +gethostname = "0.4.3" diff --git a/backend/src/main.rs b/backend/src/main.rs index f2f5706c16..a2a6f99528 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -6,14 +6,14 @@ * LICENSE-AGPL for a copy of the license. */ +use gethostname::gethostname; +use git_version::git_version; +use monitor::handle_zombie_jobs_periodically; +use sqlx::{Pool, Postgres}; use std::{ net::{IpAddr, Ipv4Addr, SocketAddr}, sync::Arc, }; - -use git_version::git_version; -use monitor::handle_zombie_jobs_periodically; -use sqlx::{Pool, Postgres}; use tokio::{ fs::{metadata, DirBuilder}, join, @@ -282,7 +282,13 @@ pub async fn run_workers - import { - faChevronDown, - faChevronUp, - faDollarSign, - faPlus - } from '@fortawesome/free-solid-svg-icons' + import { faChevronDown, faChevronUp, faPlus } from '@fortawesome/free-solid-svg-icons' import type { SchemaProperty } from '$lib/common' import { setInputCat as computeInputCat } from '$lib/utils' @@ -28,7 +23,6 @@ import StringTypeNarrowing from './StringTypeNarrowing.svelte' import Toggle from './Toggle.svelte' import type VariableEditor from './VariableEditor.svelte' - import Popover from './Popover.svelte' export let label: string = '' export let value: any diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte index 17f7ffd89a..0a3053b121 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte @@ -9,7 +9,6 @@ import ColorInput from './ColorInput.svelte' import TabSelectInput from './TabSelectInput.svelte' import { DollarSign } from 'lucide-svelte' - import Popover from '$lib/components/Popover.svelte' import Toggle from '$lib/components/Toggle.svelte' import SchemaEditor from '$lib/components/SchemaEditor.svelte' diff --git a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte index 5378099fae..4734648909 100644 --- a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte @@ -533,17 +533,17 @@ {:else} This workspace is NOT on a team plan. Users use their global free-tier quotas when doing executions in this workspace. Upgrade to a Team or Enterprise plan to unlock unlimited - execution in this workspace. + executions in this workspace. {/if}
- + - The single credit-unit is called a "computation". A computation corresponds to a - single job whose duration is less than 1s. For any additional seconds of computation, - an additional computation is accounted for. Jobs are executed on one powerful virtual - CPU with 2Gb of memory. Most jobs will take less than 200ms to execute. + The single credit-unit is called an "execution". An execution corresponds to a single + job whose duration is less than 1s. For any additional seconds of computation, an + additional execution is accounted for. Jobs are executed on one powerful virtual CPU + with 2Gb of memory. Most jobs will take less than 200ms to execute.