This project aims to create a task distribution system where a single client can submit tasks and the server will automatically distribute the tasks to workers. The goal is to efficiently allocate tasks and ensure timely completion of work. This system will help streamline the task management process and improve overall productivity.
- Python 3.10 installed on your system.
- Clone the repository to your local machine.
- Navigate to the project directory.
-
Create a virtual environment by executing the following command:
python3.10 -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
- Install the required dependencies by executing the following command:
pip install -r requirements.txt
Make sure to run the server, worker, and client in the specified order for the system to work properly.
-
Open a terminal and navigate to the project directory.
-
Run the server by executing the following command:
python server.py
-
Finally, open another terminal and navigate to the project directory.
-
Run the client by executing the following command:
python client.py