refactor(scheduler): drop parjob's unused skip_bad_worker_
Cause: parjob's allocation now draws candidate hosts from the shared
sched_host_iter_next() (host_iter.c) instead of its own
sched_collect_workers() loop, so skip_bad_worker_ lost its only caller
(the compiler warns it is unused). seqjob's copy was already removed when
it moved onto the shared iterators (b18c5f78).
Fix: remove it. Its only check (a NULL worker) is done by
sched_host_iter_next(), which is also where host filtering now lives
(closed hosts, bug-1939; unavailable and reconciling hosts, bug-1963).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3224e90683
commit
f389845701
1 changed files with 0 additions and 10 deletions
|
|
@ -37,16 +37,6 @@ static void parjob_allocator_fini(xce_sched_plugin_t* plugin)
|
|||
FREEUP(plugin);
|
||||
}
|
||||
|
||||
static int skip_bad_worker_(xce_sched_worker_t* w)
|
||||
{
|
||||
if (w == NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* add more check here */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* parjob_prepare_allocation - task 4.2 (Req 4 AC 5/AC 6): populates
|
||||
* ctx->alloc_req.host/ctx->alloc_req.shared for whichever bucket/host is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue