How AI Schedules Parallel Jobs When Some Tasks Must Wait?

Follow data dependencies through a small schedule and distinguish average completion time from time to finish the last job.

A computing researcher studies colored task strips above a set of processor boards.
Extra workers can run independent tasks together. A dependency still constrains when a later task can start.

Two jobs arrive together. One is nearly finished and the other can occupy the whole cluster for a minute. Which gets the next free worker? A scheduling AI model can learn a policy for choosing among ready tasks. Its answer depends on the objective: improving average completion time can make a different job wait longer.

Which work can actually run together?

Represent a job as a graph with directed edges from prerequisite to dependent task. A worker becoming free does not make all tasks eligible. Record arrival times, available workers, task durations and transfer or setup time. Distinguish a lack of ready work from an idle worker that the scheduler could have used.

A layered circuit board glows with colored points.
A ready queue contains only tasks whose prerequisites have finished.

What did the researchers compare?

In their 2019 study, MIT’s Decima researchers used graph representations and reinforcement learning to schedule data-processing jobs. In a Spark prototype on a 25-node cluster, they reported improvements in average job completion time over the hand-tuned heuristics they tested. This is evidence about those workloads, constraints and competitors. A different mix of arrivals, memory limits or priorities changes the scheduling problem. MIT’s Decima scheduling research Decima’s scheduling experiment and scope

Parallel colored traces stretch down a dark corridor.
A worker that is free may still lack the memory needed for a ready task.

Whose waiting time did the average hide?

Report each job’s time from arrival to completion, the time the final job finished, and a measure of long waits. A policy evaluated only on completed jobs can hide jobs that never received service before the test ended. Include unfinished jobs and record the additional time or compute spent making scheduling decisions. When Can an AI Forecast Help Two Cloud Workloads Share a Machine?

Several tall colored panels stand beside a person.
Mean completion time and longest wait reward different schedules.

Try it with the evidence

Compare two legal schedules

Source notes. Fictional workload with one worker. Both jobs arrive at minute zero. Job S needs 2 minutes. Job L needs 8 minutes. Neither can be interrupted. There is no setup time.

Prompt. Calculate both job completion times, their mean and the time all work finishes when S runs first and when L runs first. Which metric would miss the difference?

Check your reading

S first gives completion times 2 and 10, with a mean of 6 minutes. L first gives 8 and 10, with a mean of 9. Both workloads finish at minute 10. The final completion time alone misses how long the individual jobs waited.

Illustrated field notes

Dependencies, workers and data movement
Several round instruments sit within a lit control panel.
Equal numbers of tasks can represent very different amounts of work.
Illuminated terrain forms a map-like relief.
A long-running stage can set the minimum completion time.
Bright braided ribbons overlap.
A speedup claim should identify the original computation and its output.
Small points form branching vertical lines.
Shuffling a partition consumes time before the dependent task starts.
A magnifier reveals a gold-colored component.
A processor-specific optimization needs timing on that processor.
Light trails cross rows of dark equipment.
The cost of transferring data can outweigh a gain from parallel execution.
Two people examine an illuminated workbench.
The software and hardware together determine the feasible schedule.
A strip of metal glows with amber sparks.
Combining work can avoid an intermediate transfer but alter when other work can start.
Measuring cost, service and completion
A person faces a display amid trees.
Energy per completed job includes time spent waiting for resources.
A robot-like device stands in a dark hall.
A fair evaluation records failed work and time spent retrying.
A metal wheel is seen in close-up on a textured surface.
A learned choice can be tested against established scheduling heuristics.
A bright shape is reflected across a dark horizontal line.
Capacity added after a job ends could not have helped that job.
Curved blue and violet trails cross a dark field.
A timeline can reveal whether a slow job waited for data or for a worker.