From c479b715795bf0d777bb260bea310bc0efd1f671 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 22 Jul 2025 07:52:39 +0000 Subject: [PATCH] worker group nits --- .../src/lib/components/WorkerGroup.svelte | 409 +++++++++--------- 1 file changed, 210 insertions(+), 199 deletions(-) diff --git a/frontend/src/lib/components/WorkerGroup.svelte b/frontend/src/lib/components/WorkerGroup.svelte index 10cfda4704..efe913b38c 100644 --- a/frontend/src/lib/components/WorkerGroup.svelte +++ b/frontend/src/lib/components/WorkerGroup.svelte @@ -447,121 +447,6 @@ {/if} -
-
-
- Additional Python Paths - {#if nconfig.additional_python_paths} - {#each nconfig.additional_python_paths as _, i} -
- - {#if $superadmin || $devopsRole} - - {/if} -
- {/each} - {/if} - {#if $superadmin || $devopsRole} -
- -
- {/if} - - PIP local dependencies - {#if nconfig.pip_local_dependencies} - {#each nconfig.pip_local_dependencies as _, i} -
- - {#if $superadmin || $devopsRole} - - {/if} -
- {/each} - {/if} - {#if $superadmin || $devopsRole} -
- -
- {/if} -
-
-
+ +
+
+
+ + {#if nconfig.additional_python_paths} + {#each nconfig.additional_python_paths as _, i} +
+ + {#if $superadmin || $devopsRole} + + {/if} +
+ {/each} + {/if} + {#if $superadmin || $devopsRole} +
+ +
+ {/if} +
+ + {#if nconfig.pip_local_dependencies} + {#each nconfig.pip_local_dependencies as _, i} +
+ + {#if $superadmin || $devopsRole} + + {/if} +
+ {/each} + {/if} + {#if $superadmin || $devopsRole} +
+ +
+ {/if} +
+
+
- - {#snippet header()} -
- {#if nconfig.init_bash !== undefined} - Enabled - {/if} -
- {/snippet} -

Run at start of the workers. More lightweight than requiring custom worker images.

+
+ Run at start of the workers. More lightweight than requiring custom worker images. +
+ -
- { - if (config) { - dirty = true - const code = e.detail - if (code != '') { - nconfig.init_bash = code?.replace(/\r\n/g, '\n') - } else { - nconfig.init_bash = undefined + {#snippet header()} +
+ {#if nconfig.init_bash !== undefined} + Enabled + {/if} +
+ {/snippet} +
+ { + if (config) { + dirty = true + const code = e.detail + if (code != '') { + nconfig.init_bash = code?.replace(/\r\n/g, '\n') + } else { + nconfig.init_bash = undefined + } } - } - }} - /> -
- - - - {#snippet header()} -
- {#if nconfig.periodic_script_bash !== undefined} - Enabled - {/if} + }} + />
- {/snippet} -

Run periodically at configurable intervals. Useful for maintenance tasks like cleaning - disk space.

+
+
+
+ Run periodically at configurable intervals. Useful for maintenance tasks like cleaning + disk space. +
+ + {#snippet header()} +
+ {#if nconfig.periodic_script_bash !== undefined} + Enabled + {/if} +
+ {/snippet} -
- - { - dirty = true - }} - /> - Minimum: 60 seconds -
- -
- { - if (config) { +
+ + { dirty = true - const code = e.detail - if (code != '') { - nconfig.periodic_script_bash = code?.replace(/\r\n/g, '\n') - } else { - nconfig.periodic_script_bash = undefined + }} + /> + Minimum: 60 seconds +
+ +
+ { + if (config) { + dirty = true + const code = e.detail + if (code != '') { + nconfig.periodic_script_bash = code?.replace(/\r\n/g, '\n') + } else { + nconfig.periodic_script_bash = undefined + } } - } - }} - /> -
- + }} + /> +
+
+
{#snippet actions()}