Skip to content

Commit

Permalink
BF: Scheduler reports error although GDI request was executed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ernst-bablick committed Jan 16, 2025
1 parent bfa3ca9 commit 22c045c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/daemons/qmaster/sge_sched_order.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,11 @@ sge_schedd_add_gdi_order_request(order_t *orders, lList **answer_list, lList **o

bool
sge_schedd_block_until_orders_processed(lList **answer_list) {
DENTER(TOP_LAYER);
bool ret = true;
sge_sl_elem_t *next_elem = nullptr;
sge_sl_elem_t *current_elem = nullptr;

DENTER(TOP_LAYER);

/*
* wait till all GDI order requests are finished
*/
Expand All @@ -135,7 +134,6 @@ sge_schedd_block_until_orders_processed(lList **answer_list) {
auto *gdi_multi = static_cast<ocs::gdi::Request *>(sge_sl_elem_data(current_elem));
lList *request_answer_list = nullptr;
lList *multi_answer_list = nullptr;
int order_id;

/* get next element, dechain current and destroy it */
sge_sl_elem_next(Master_Request_Queue.request_list, &next_elem, SGE_SL_FORWARD);
Expand All @@ -151,7 +149,7 @@ sge_schedd_block_until_orders_processed(lList **answer_list) {
/*
* now we have an answer. is it positive?
*/
order_id = 1;
int order_id = 0;
gdi_multi->get_response(&request_answer_list, ocs::gdi::Command::SGE_GDI_ADD, ocs::gdi::SubCommand::SGE_GDI_SUB_NONE, ocs::gdi::Target::TargetValue::SGE_ORDER_LIST, order_id, nullptr);
if (request_answer_list != nullptr) {
answer_list_log(&request_answer_list, false, false);
Expand Down

0 comments on commit 22c045c

Please sign in to comment.