In this section, we will set up two machines in Linux. The first one, hostname
foshan, will perform the client role, where app Celery will dispatch the tasks to be executed. The other machine, hostname Phoenix, will perform the role of a broker, result backend, and the queues consumed by workers.
Let us start the setup of the client machine. In this machine, we will set up a virtual environment with Python 3.3, using the tool
pyvenv. The goal of
pyvenv is to not pollute Python present in the operating system with additional modules, but to separate the developing environments necessary for each project. We will execute the following command to create our virtual environment:
The preceding line creates a directory called
celery_env in the current path, which contains all the structures necessary to isolate the developing environment in Python. The following screenshot illustrates the structure created in the