Skip to content

Commit

Permalink
vine: check the availability of staged inputs (#3994)
Browse files Browse the repository at this point in the history
* vine: check the availability of staged inputs

* check for created files

* revert changes

* revert changes

* vine: change &= to =

* set t->output_received on success

* break when result is not success

* lint

* remove redund code

* always do vine_manager_get_output_files
  • Loading branch information
JinZhou5042 authored Dec 2, 2024
1 parent 8530039 commit c364db8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions taskvine/src/manager/vine_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1277,10 +1277,12 @@ static int fetch_outputs_from_worker(struct vine_manager *q, struct vine_worker_
default:
/* Otherwise get all of the output files. */
if (!t->output_received) {
result &= retrieve_output(q, w, t);
t->output_received = 1;
result = retrieve_output(q, w, t);
if (result == VINE_SUCCESS) {
t->output_received = 1;
}
}
result &= vine_manager_get_output_files(q, w, t);
result = vine_manager_get_output_files(q, w, t);
break;
}

Expand Down

0 comments on commit c364db8

Please sign in to comment.