Skip to content

Commit

Permalink
fix lint, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Apr 17, 2024
1 parent eb4621b commit 87dea90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion main.star
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def run(plan, args={}):
dugtrio_config_template,
all_participants,
args_with_right_defaults.participants,
el_cl_data_files_artifact_uuid,
network_params,
global_node_selectors,
)
Expand Down
14 changes: 9 additions & 5 deletions src/dugtrio/dugtrio_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def launch_dugtrio(
config_template,
participant_contexts,
participant_configs,
el_cl_data_files_artifact_uuid,
network_params,
global_node_selectors,
):
Expand Down Expand Up @@ -60,10 +59,8 @@ def launch_dugtrio(
config_files_artifact_name = plan.render_templates(
template_and_data_by_rel_dest_filepath, "dugtrio-config"
)
el_cl_data_files_artifact_uuid = el_cl_data_files_artifact_uuid
config = get_config(
config_files_artifact_name,
el_cl_data_files_artifact_uuid,
network_params,
global_node_selectors,
)
Expand All @@ -73,7 +70,6 @@ def launch_dugtrio(

def get_config(
config_files_artifact_name,
el_cl_data_files_artifact_uuid,
network_params,
node_selectors,
):
Expand All @@ -87,14 +83,22 @@ def get_config(
ports=USED_PORTS,
files={
DUGTRIO_CONFIG_MOUNT_DIRPATH_ON_SERVICE: config_files_artifact_name,
constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: el_cl_data_files_artifact_uuid,
},
cmd=["-config", config_file_path],
min_cpu=MIN_CPU,
max_cpu=MAX_CPU,
min_memory=MIN_MEMORY,
max_memory=MAX_MEMORY,
node_selectors=node_selectors,
ready_conditions=ReadyCondition(
recipe=GetHttpRequestRecipe(
port_id="http",
endpoint="/healthcheck",
),
field="code",
assertion="==",
target_value=200,
),
)


Expand Down

0 comments on commit 87dea90

Please sign in to comment.