Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.05 KB

File metadata and controls

32 lines (18 loc) · 1.05 KB

Job Queue Visualizer with RabbitMQ and Python

This project demonstrates how a priority queue can be used to schedule and process jobs using RabbitMQ and Python. It visualizes how jobs are enqueued with different priorities and how a worker processes them in priority order.

Overview

  • Jobs are labeled job1 through job15 and assigned a random priority between 0 (highest) and 5 (lowest).
  • The sender script enqueues jobs into a RabbitMQ priority queue, printing each job and its priority as it is added.
  • The receiver script consumes the jobs in priority order and stops automatically after processing all jobs.

How to Run

Prerequisites

Ensure the following tools are installed:

Setup and Execution

To run everything in one go, simply run the provided Bash script:

./priority_q_vis.sh

For a more realistic visualization, see scripts.