@@ -18,12 +18,12 @@ void TaskResolver::own_task(TaskPtr&& new_task) {
18
18
if (task->cmd () == new_task->cmd ()) {
19
19
if (task->options_match (new_task)) {
20
20
std::string msg = " similar task is already in execution, reject new " + new_task->info () + " and waiting for old " + task->info () + " execution" ;
21
- new_task->fail (msg);
21
+ new_task->set_fail (msg);
22
22
} else {
23
23
// handle case when task has same cmd but different options
24
24
if (new_task->job_id () > task->job_id ()) {
25
25
std::string msg = " old " + task->info () + " is overridden by a new " + new_task->info ();
26
- task->fail (msg);
26
+ task->set_fail (msg);
27
27
}
28
28
}
29
29
}
@@ -102,21 +102,21 @@ void TaskResolver::process_get_path_list_task(ezgl::application*, const TaskPtr&
102
102
CritPathsResultPtr crit_paths_result = calc_critical_path (path_type, n_critical_path_num, details_level_opt.value (), is_flat);
103
103
if (crit_paths_result->is_valid ()) {
104
104
server_ctx.crit_paths = std::move (crit_paths_result->paths );
105
- task->success (std::move (crit_paths_result->report ));
105
+ task->set_success (std::move (crit_paths_result->report ));
106
106
} else {
107
107
std::string msg{" Critical paths report is empty" };
108
108
VTR_LOG_ERROR (msg.c_str ());
109
- task->fail (msg);
109
+ task->set_fail (msg);
110
110
}
111
111
} else {
112
112
std::string msg{" unsupported report details level " + details_level_str};
113
113
VTR_LOG_ERROR (msg.c_str ());
114
- task->fail (msg);
114
+ task->set_fail (msg);
115
115
}
116
116
} else {
117
117
std::string msg{" options errors in get crit path list telegram: " + options.errors_str ()};
118
118
VTR_LOG_ERROR (msg.c_str ());
119
- task->fail (msg);
119
+ task->set_fail (msg);
120
120
}
121
121
}
122
122
@@ -138,16 +138,16 @@ void TaskResolver::process_draw_critical_path_task(ezgl::application* app, const
138
138
gint high_light_mode_index = get_item_index_by_text (toggle_crit_path, high_light_mode.c_str ());
139
139
if (high_light_mode_index != -1 ) {
140
140
gtk_combo_box_set_active (toggle_crit_path, high_light_mode_index);
141
- task->success ();
141
+ task->set_success ();
142
142
} else {
143
143
std::string msg{" cannot find ToggleCritPath qcombobox index for item " + high_light_mode};
144
144
VTR_LOG_ERROR (msg.c_str ());
145
- task->fail (msg);
145
+ task->set_fail (msg);
146
146
}
147
147
} else {
148
148
std::string msg{" options errors in highlight crit path telegram: " + options.errors_str ()};
149
149
VTR_LOG_ERROR (msg.c_str ());
150
- task->fail (msg);
150
+ task->set_fail (msg);
151
151
}
152
152
}
153
153
0 commit comments