Skip to content

Commit

Permalink
breeder - drop debug config print task
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Nov 17, 2023
1 parent d2583af commit c613d33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
9 changes: 1 addition & 8 deletions breeder/linux_network_stack/effectuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ def create_target_interaction_dag(dag_id, config, target, identifier):

with dag as interaction_dag:

dump_config = BashOperator(
task_id='print_config',
bash_command='echo ${config}',
env={"config": str(config)},
dag=interaction_dag,
)

@dag.task(task_id="pull_optimization_step")
def run_pull_optimization():
import asyncio
Expand Down Expand Up @@ -193,7 +186,7 @@ def is_stop_criteria_reached(iteration):

stop_step = EmptyOperator(task_id="stop_task", dag=interaction_dag)

dump_config >> pull_step >> aquire_lock_step >> effectuation_step >> recon_step >> release_lock_step >> push_step >> run_iter_count_step >> stopping_conditional_step >> [continue_step, stop_step]
pull_step >> aquire_lock_step >> effectuation_step >> recon_step >> release_lock_step >> push_step >> run_iter_count_step >> stopping_conditional_step >> [continue_step, stop_step]

return dag

9 changes: 4 additions & 5 deletions breeder/linux_network_stack/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ def create_optimization_dag(dag_id, config, identifier):

with dag as optimization_dag:

dump_config = BashOperator(
task_id='print_config',
bash_command='echo ${config}',
env={"config": str(config)},
noop = BashOperator(
task_id='noop',
bash_command='echo "noop"',
dag=optimization_dag,
)

Expand Down Expand Up @@ -110,6 +109,6 @@ def run_optimization():

optimization_step = run_optimization()

dump_config >> optimization_step
noop >> optimization_step

return dag

0 comments on commit c613d33

Please sign in to comment.