more efficient work distribution #35

Open
opened 2026-07-28 15:24:04 +02:00 by DestinyofYeet · 1 comment

either

  • check size of queue for each worker and schedule it to the worker with the least tasks
  • round robin: if worker empty, schedule it. If all workers have tasks, distribute randomly
  • work stealing?
either - check size of queue for each worker and schedule it to the worker with the least tasks - round robin: if worker empty, schedule it. If all workers have tasks, distribute randomly - work stealing?
DestinyofYeet changed title from more efficient work distributen to more efficient work distribution 2026-07-28 15:24:24 +02:00
Author
Owner

Task get's queued:

  • If a worker is free, give it to that worker.
  • If not, put it on a central queue.
  • Once a worker has finished it's work and there is work in the central queue, it will process the next item in the queue

implemented with #89

Task get's queued: - If a worker is free, give it to that worker. - If not, put it on a central queue. - Once a worker has finished it's work and there is work in the central queue, it will process the next item in the queue implemented with #89
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
DestinyofYeet/dataloom#35
No description provided.