Skip to content

Commit 6cb8c67

Browse files
authored
Copilot suggestions (#4239)
* update comment * update comment * update comment * break after releasing selected worker * typos
1 parent 22bdd75 commit 6cb8c67

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

batch_job/src/work_queue_factory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,8 @@ void remove_and_wait_all_workers( struct batch_queue *queue, struct itable *job_
628628
/*
629629
For non-local batch queues, we skip this be because our ability to
630630
wait on removed jobs is unreliable. For local jobs, we follow up
631-
the friendly remove after 30s with an unfriendly kill, and we wait
632-
for children to exit to ensure cleanup is complete.
631+
the friendly remove after 30s with an unfriendly kill, then wait 5s,
632+
and repeat this process until all workers exit, ensuring cleanup is complete.
633633
*/
634634

635635
if(batch_queue_get_type(queue)==BATCH_QUEUE_TYPE_LOCAL) {

taskvine/src/bindings/python3/ndcctools/taskvine/dask_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def initialize_graph(self):
186186
self._depth_of[task.key] = 0
187187
self.set_result(task.key, task.value)
188188

189-
# Then initializa pwnding consumers if pruning is enabled
189+
# Then initialize pending consumers if pruning is enabled
190190
if self.prune_depth > 0:
191191
self._initialize_pending_consumers()
192192
self._initialize_pending_producers()

taskvine/src/bindings/python3/ndcctools/taskvine/dask_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class DaskVine(Manager):
115115
# @param env_per_task if true, each task individually expands its own environment. Must use environment option as a str.
116116
# @param progress_disable If True, disable progress bar
117117
# @param progress_label Label to use in progress bar
118-
# @param reconstruct Reconstrut graph based on annotated functions.
118+
# @param reconstruct Reconstruct graph based on annotated functions.
119119
# @param merge_size When reconstructing a merge function, merge this many at a time
120120
# @param wrapper Function to wrap dask calls. It should take as arguments (key, fn, *args). It should execute
121121
# fn(*args) at some point during its execution to produce the dask task result.

taskvine/src/manager/taskvine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ whose contents are not returned to the manager by default.
908908
@param f A file object.
909909
@return A pointer to the contents of the file. This will be freed with the file object.
910910
On error, returns NULL with errno set to: ENOENT if the file was not yet created,
911-
EAGAIN is the fetch failed but can be tried again, EIO if some unexpected I/O error occured.
911+
EAGAIN if the fetch failed but can be tried again, EIO if some unexpected I/O error occurred.
912912
*/
913913

914914
const char *vine_fetch_file(struct vine_manager *m, struct vine_file *f);

taskvine/src/manager/vine_manager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ static int enforce_worker_eviction_interval(struct vine_manager *q)
993993
/* evict this worker */
994994
debug(D_VINE | D_NOTICE, "Intentionally evicting worker %s", w->hostname);
995995
release_worker(q, w);
996+
break;
996997
}
997998
}
998999
list_delete(candidates_list);

taskvine/src/worker/vine_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ int vine_cache_check_files(struct vine_cache *c, struct link *manager)
954954
vine_cache_remove(c, cachename, manager);
955955
}
956956

957-
/* Note that f may not longer be valid at this point */
957+
/* Note that f may no longer be valid at this point */
958958
}
959959
return 1;
960960
}

0 commit comments

Comments
 (0)