LogoTask Service

Task Generator Status

Loading...

The Task Generator produces tasks for the worker processes using a random sleep interval to simulate work.
Notice how the status fluctuates between running and stopped. This is because multiple instances are serving requests for the status data, however only the lease holder has the state as it is the instance generating the tasks.
Try starting the generator again; you'll see how the lease prevents other instances from performing the same work.
This also means Stopping the generator behaves the same way. To truely stop it'll you'll have to press it a few times hoping to get the lease holder instance.

Filter Tasks

Lookup Task by ID

Tasks

Loading...

Worker Testing

This component simulates a worker that processes tasks, inside your browser. The worker will fetch a single task from the server, process it, and then complete the task. The worker will also perform heartbeats to renew the lease on the task. The worker will simulate various failure scenarios, such as high latency and worker failures, to test the robustness of the system.