AUTOMARK / WORKLOAD SIMULATOR

Accepting
isn’t finishing.

A burst of submissions. A queue. A few independent workers. Change the workload and follow what happens between submit and result.

Illustrative logical simulation. Fictional jobs and virtual seconds; no connection to AutoMark, SVN, AWS or Docker. No code is executed.

The grading workbench

Ready to explore. Ready. Choose a workload, then start or step.

0sVIRTUAL TIME

Playback needs JavaScript. The model and a representative example are explained below.

01 / INTAKE

Accept

0 / 12

jobs received

12 not yet received
0 moving through intake

Arrivals: three jobs per second

02 / FIFO QUEUE

Wait 0

Oldest waiting job goes first.

    Work will wait here.

    Intake takes one virtual second.
    Queue size counts waiting jobs only.

    03 / ISOLATED EXECUTION

    Grade 0 running

    Worker 01Available

    Ready for the next queued job

    Worker 02Available

    Ready for the next queued job

    Worker 03Available

    Ready for the next queued job

    04 / OUTCOMES

    Return

    0 completed

    0 failed

      Acceptance isn’t a result.

      Peak waiting queue0 jobs
      Simulated worker utilisation0%
      Workload completion—

      Utilisation = busy worker-seconds ÷ (workers × elapsed virtual seconds), including intake time. It starts at 0%. Peak queue is sampled after dispatch at each whole-second boundary.

      WHAT TO LOOK FOR

      Synthetic executions take 6, 8 or 10 virtual seconds.

      Inspect all 12 submission records
      1. J01Not receivedNo worker assignedArrives 0s
      2. J02Not receivedNo worker assignedArrives 0s
      3. J03Not receivedNo worker assignedArrives 0s
      4. J04Not receivedNo worker assignedArrives 1s
      5. J05Not receivedNo worker assignedArrives 1s
      6. J06Not receivedNo worker assignedArrives 1s
      7. J07Not receivedNo worker assignedArrives 2s
      8. J08Not receivedNo worker assignedArrives 2s
      9. J09Not receivedNo worker assignedArrives 2s
      10. J10Not receivedNo worker assignedArrives 3s
      11. J11Not receivedNo worker assignedArrives 3s
      12. J12Not receivedNo worker assignedArrives 3s

      ACTUAL EVENTS FROM THIS MODEL

      Follow the hand-offs.

      Start or step to create events.

      KEEP A REFERENCE / IN MEMORY ONLY

      Change one thing. Compare the wait.

      Retain a completed run, reset and try another configuration. Leaving this experiment clears the reference.

      No completed run retained yet.

      Scheduling assumptions and limits

      Three synthetic jobs arrive each virtual second, each spending one second in intake. FIFO dispatch uses received order; ties use submission identifier. Available workers are assigned in worker-number order. Executions finish before new dispatch at each tick. No retries, autoscaling, network delay, storage, crashes or durable persistence are modelled.

      The timeout scenario gives one job 14 seconds of required work and an 8-second execution limit. It fails at that limit; its worker becomes available in the same tick. A duration exactly equal to its limit completes. Timings are integers and independent of browser frame rate. Reset discards the current run.

      Playback at 1× advances one virtual second per one second of viewing time. Browser throttling can slow playback; the virtual schedule stays unchanged. Leaving the route cleans up playback. Hiding the tab pauses it.

      WHAT THE MODEL LEAVES VISIBLE

      The work
      between the steps.

      Explore the full AutoMark case study

      Accepted is a promise to process.

      Intake receives jobs before grading finishes. A queue lets incoming work wait separately while available workers take the next job.

      Independent doesn’t mean instantaneous.

      More workers can reduce waiting in this model. They cannot make an individual execution shorter. Mixed durations also change completion order.

      Failure is an outcome, too.

      The timeout scenario stops one execution and frees its worker. There are no retries here. Completed and failed jobs are both terminal states.

      Isolation is a real boundary.

      AutoMark used isolated Docker execution for student code. These worker lanes only illustrate that responsibility: they execute no code and establish no production capacity.