Skip to content

Commit a654c9e

Browse files
authored
vine: hotfix, use consistent results in handle_failure/fetch_output (#4109)
* vine: hotfix, use consistent results in handle_failure/fetch_output * whitespace * fix success branch
1 parent 4b39d4d commit a654c9e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

taskvine/src/manager/vine_manager.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,12 +1341,13 @@ static int fetch_outputs_from_worker(struct vine_manager *q, struct vine_worker_
13411341
if (result != VINE_SUCCESS) {
13421342
debug(D_VINE, "Failed to receive output from worker %s (%s).", w->hostname, w->addrport);
13431343
handle_failure(q, w, t, result);
1344-
}
13451344

1346-
if (result == VINE_WORKER_FAILURE) {
1347-
t->time_when_done = timestamp_get();
1348-
return 0;
1345+
if (result != VINE_APP_FAILURE) {
1346+
t->time_when_done = timestamp_get();
1347+
return 0;
1348+
}
13491349
}
1350+
13501351
delete_uncacheable_files(q, w, t);
13511352

13521353
/* if q is monitoring, update t->resources_measured, and delete the task

0 commit comments

Comments
 (0)