mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-25 16:03:47 +00:00
feat: workflow as code for typescript
This commit is contained in:
@@ -14,7 +14,7 @@ use uuid::Uuid;
|
||||
use windmill_common::ee::{get_license_plan, LicensePlan};
|
||||
use windmill_common::{
|
||||
error::{self, Error},
|
||||
jobs::{QueuedJob, ENTRYPOINT_OVERRIDE},
|
||||
jobs::QueuedJob,
|
||||
utils::calculate_hash,
|
||||
worker::WORKER_CONFIG,
|
||||
DB,
|
||||
@@ -55,8 +55,8 @@ use crate::S3_CACHE_BUCKET;
|
||||
|
||||
use crate::{
|
||||
common::{
|
||||
create_args_and_out_file, get_reserved_variables, handle_child, read_result, set_logs,
|
||||
start_child_process, write_file,
|
||||
create_args_and_out_file, get_main_override, get_reserved_variables, handle_child,
|
||||
read_result, set_logs, start_child_process, write_file,
|
||||
},
|
||||
AuthedClientBackgroundTask, DISABLE_NSJAIL, DISABLE_NUSER, HOME_ENV, HTTPS_PROXY, HTTP_PROXY,
|
||||
LOCK_CACHE_DIR, NO_PROXY, NSJAIL_PATH, PATH_ENV, PIP_CACHE_DIR, PIP_EXTRA_INDEX_URL,
|
||||
@@ -463,12 +463,7 @@ async fn prepare_wrapper(
|
||||
String,
|
||||
Option<String>,
|
||||
)> {
|
||||
let main_override = args
|
||||
.map(|x| {
|
||||
x.0.get(ENTRYPOINT_OVERRIDE)
|
||||
.map(|x| x.get().to_string().replace("\"", ""))
|
||||
})
|
||||
.flatten();
|
||||
let main_override = get_main_override(args);
|
||||
|
||||
let relative_imports = RELATIVE_IMPORT_REGEX.is_match(&inner_content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user