8574  Reviews star_rate star_rate star_rate star_rate star_half

Distributed Task Automation with Python Celery

This Python course is for programmers who want to learn distributed task automation. This course dives into tools like Celery and RabbitMQ and covers everything from setting up a development...

Read More
Duration 2 days
Course Code AUTOTASK-PYTH-CELERY
Available Formats Classroom

Overview

This Python course is for programmers who want to learn distributed task automation. This course dives into tools like Celery and RabbitMQ and covers everything from setting up a development environment with Visual Studio Code, Python, and Docker, to understanding containerization and remote data storage. Learners discover how to run PostgreSQL and RabbitMQ in containers. Learners gain practical skills on scaling and deploying Celery in a production environment. This training can be customized to include distributed task automation examples relevant to your work domain.

Skills Gained

  • Understand the concept of Distributed Task Automation and learn about tools like Celery and RabbitMQ
  • Set up a development environment with Visual Studio Code, Python, and Docker
  • Learn about containerization using Docker and Docker Compose
  • Understand remote data storage and how to run PostgreSQL in a container
  • Work with Message Brokers and run RabbitMQ in a container
  • Gain a solid understanding of Celery basics, including task definition, running tasks, and worker management
  • Work with advanced Celery concepts like task serialization, routing, and scheduling periodic tasks
  • Learn how to scale and deploy Celery in a production environment, including load balancing, high availability, and performance tuning.

Prerequisites

All students should have taken the Python Task Automation course or have significant experience with the topics covered in the Python Task Automation course. Experience with RabbitMQ and PostgreSQL is helpful but not required.

Course Details

Training Materials

All students receive comprehensive courseware covering all topics in the course. The instructor distributes courseware via GitHub. The courseware includes documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.

Software Requirements

Students will need a free, personal GitHub account to access the courseware. All students will need a modern web browser such as Google Chrome. Student machines will need a text editor like Visual Studio Code, the latest Python version, Docker Desktop, PanDoc, and OpenOffice. Students will need permission to install NPM and PyPi packages as well as the ability to download Docker images. Preconfigured student virtual machines can provided upon request.

Overview of Distributed Task Automation

  • What is Distributed Task Automation?
  • Overview of Celery and its Features
  • Celery compared to Faust
  • What is Message Broker?
  • What is RabbitMQ?
  • RabbitMQ + PostgreSQL compared Kafka + Zookeeper

Development Environment

  • Configure Visual Studio Code for Python Script Programming
  • Python Code Linting & Reformatting with Ruff & MyPy
  • Debugging Python Scripts with Visual Studio Code
  • Docker Desktop

Containerization

  • What is a Container?
  • What is Docker?
  • What is Docker Hub?
  • Images and Containers
  • Create an Image with Dockerfile
  • Run Containers
  • Configure Containers with Environment Variables
  • Docker Compose
  • Docker Compose Networking
  • Docker Compose Volume

Remote Data Storage

  • What is Remote Data Storage?
  • Running a Data Storage in a Container
  • Running PostgreSQL in a Container
  • Running PostgreSQL Client Tool in a Container
  • Configure with Docker Compose
  • Read/Write Data to PostgreSQL with Python SQLAlchemy

Remote Message Broker

  • What is a Message Broker?
  • Running a Message Broker in a Container
  • Running RabbitMQ in a Container
  • Running RabbitMQ Client Tool in a Container
  • Configure with Docker Compose
  • Read/Write Data to RabbitMQ with Python and Pika

Celery Basics

  • Installing Celery and its dependencies
  • Setting up a simple Celery project
  • Defining and running tasks
  • Task decorators and options
  • Passing arguments and results between tasks
  • Task retries and error handling
  • Monitoring and managing Celery workers

Advanced Celery Concepts

  • Task serialization and message brokers
  • Task routing and prioritization
  • Task result backends
  • Grouping and chaining tasks
  • Scheduling periodic tasks with Celery beat

Scaling and Deployment

  • Load balancing tasks with multiple workers
  • Deploying Celery in a production environment
  • Configuring Celery for high availability
  • Best practices for handling long-running tasks
  • Monitoring and performance tuning

Conclusion

  • Summary of Key Concepts
  • Q&A
  • Further Resources and Next Steps

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Although there seemed to be too many links for the course, everything worked smoothly.

this class was informative, made me think about certifying for the suse manager cert.

Sean is the very good instructor. I would like to take his class again in the future.

The platform is very intuitive and easy to navigate. Great tool for learning

I found this course informative. It was easy to follow and provided some good information.