|
@@ -483,13 +483,13 @@ def test_modify_config_properties_without_force(caplog, init_sql_repo, init_conf
|
|
|
error_message = str(caplog.text)
|
|
|
|
|
|
assert 'DATA_NODE "d3" was added' in error_message
|
|
|
+ assert 'JOB "max_nb_of_workers" was added' in error_message
|
|
|
|
|
|
assert 'DATA_NODE "d0" was removed' in error_message
|
|
|
|
|
|
assert 'DATA_NODE "d2" has attribute "default_path" modified' in error_message
|
|
|
assert 'CORE "root_folder" was modified' in error_message
|
|
|
assert 'JOB "mode" was modified' in error_message
|
|
|
- assert 'JOB "max_nb_of_workers" was modified' in error_message
|
|
|
assert 'SCENARIO "my_scenario" has attribute "frequency" modified' in error_message
|
|
|
assert 'SCENARIO "my_scenario" has attribute "tasks" modified' in error_message
|
|
|
assert 'TASK "my_task" has attribute "inputs" modified' in error_message
|
|
@@ -517,7 +517,7 @@ def test_modify_job_configuration_dont_stop_application(caplog, init_sql_repo, i
|
|
|
scenario_config = config_scenario()
|
|
|
|
|
|
with patch("sys.argv", ["prog", "--experiment", "1.0"]):
|
|
|
- Config.configure_job_executions(mode="standalone", max_nb_of_workers=2)
|
|
|
+ Config.configure_job_executions(mode="standalone", max_nb_of_workers=3)
|
|
|
core = Core()
|
|
|
core.run(force_restart=True)
|
|
|
scenario = _ScenarioManager._create(scenario_config)
|
|
@@ -526,7 +526,7 @@ def test_modify_job_configuration_dont_stop_application(caplog, init_sql_repo, i
|
|
|
assert_true_after_time(lambda: all(job.is_finished() for job in jobs))
|
|
|
error_message = str(caplog.text)
|
|
|
assert 'JOB "mode" was modified' in error_message
|
|
|
- assert 'JOB "max_nb_of_workers" was modified' in error_message
|
|
|
+ assert 'JOB "max_nb_of_workers" was added' in error_message
|
|
|
core.stop()
|
|
|
assert_true_after_time(lambda: core._dispatcher is None)
|
|
|
|
|
@@ -558,7 +558,7 @@ def config_scenario_2():
|
|
|
# Changing the "storage_folder" will fail since older versions are stored in older folder
|
|
|
# storage_folder="foo_storage",
|
|
|
)
|
|
|
- Config.configure_job_executions(mode="standalone", max_nb_of_workers=5)
|
|
|
+ Config.configure_job_executions(mode="standalone", max_nb_of_workers=3)
|
|
|
data_node_1_config = Config.configure_data_node(
|
|
|
id="d1", storage_type="pickle", default_data="abc", scope=Scope.SCENARIO
|
|
|
)
|