[BUG]: supertask not respecting max agents
I maintainer di solito rispondono entro 1 giorno
@jessevz ci sta già lavorando.
Dal 16/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Version Information
1.0.1
Hashcat
7
Description
Sometimes it happens that a supertask with a max agents for example 10, more agents will jump on it. I suspect that the reason is, is that the function: isSaturatedByOtherAgents() will check how many agents are assigned to a task and compare that to the max agents of that single task. but it does not check if there are already too much agents working on the supertask. this only happens in the getChunk endpoint (when an agent is already assigned to a task), because here it is run like this:
if (TaskUtils::isSaturatedByOtherAgents($task, $agent)) {
Only on the current assigned task, without checking the taskwrapper.
In the gettaskAction there is a wrapper in the form of getcanidatetasks, which will run this function for every task of a taskwrapper:
private static function getCandidateTasks(Agent $agent, array $accessGroups, TaskWrapper $taskWrapper): array {
$totalAssignments = 0;
$candidateTasks = [];
// load assigned tasks for this TaskWrapper
$qF = new QueryFilter(Task::TASK_WRAPPER_ID, $taskWrapper->getId(), "=");
$oF = new OrderFilter(Task::PRIORITY, "DESC");
$tasks = Factory::getTaskFactory()->filter([Factory::FILTER => $qF, Factory::ORDER => $oF]);
foreach ($tasks as $task) {
// count number of other agents already working on the task,
// no tasks can be candidates if limit is already reached
$totalAssignments += self::numberOfOtherAssignedAgents($task, $agent);
if ($taskWrapper->getMaxAgents() > 0 && $totalAssignments >= $taskWrapper->getMaxAgents()) {
return [];
}
where is called on every task numberOfOtherAssignedAgents
This is especially a problem since most of the times in a supertask, the max agents of a single sub task are set to zero, which makes the task claim every available agent on that priority
- Lingua principale
- PHP
- Stelle
- 1.8k
- Fork
- 257
- Merge medio
- 1g 11h
- PR unite (30g)
- 15
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hashtopolis/server
-
bug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
hashtopolis/server#2614 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
hashtopolis/server#2613 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
hashtopolis/server#2537 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Heatmap chart displays days of the week in wrong placeForse già presa @LuffyNoNika l’ha presa 1 giorno fa. Apertabug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
hashtopolis/server#2534 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement server
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
hashtopolis/server#2532 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hashtopolis/server
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/blocks-engine#4621 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
YunoHost-Apps/snappymail_ynh#205 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Automattic/static-site-importer#2653 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug (unconfirmed) Search :mag:
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
FreshRSS/FreshRSS#9533 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
ExpressionEngine/ExpressionEngine#5453 ·
I maintainer di solito rispondono entro 1 giorno