Distributed Task Automation with Python


Course Number: PYTH-269
Duration: 2 days (13 hours)
Format: Live, hands-on

Advanced Python Automation Training Overview

This Distributed Task Automation with Python training course teaches developers the core Python skills to write almost any automation script and run it in a distribution fashion. Participants learn how to apply containerization with Docker, access database data with Python, send messages with Python and RabbitMQ, orchestrate distributed tasks with Celery, and execute remote SSH commands.

Note: This course follows Accelebrate's Python Task Automation course.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Deploy tasks at scale with Celery
  • Employ Python and Celery in a Containerized Environment
  • Use the PostgreSQL database with Python
  • Send Messages with Python and RabbitMQ
  • Apply basic and more advanced Python Celery skills

Prerequisites

All students should have taken Accelebrate's Python Task Automation course or have significant experience with the topics covered in that course.

Outline

Expand All | Collapse All

Introduction
Development Environment (Very Quick Overview)
  • Configure VS Code for Python script development
  • Code Reformatting with Black
  • Debugging Python Scripts with VS Code
Simple Task Distribution
  • Use SSH to run Remote Commands
  • Use SSH to Download/Upload Files
  • Write Python Scripts to run code on remote Linux Computers
  • Collect Data from remote Linux Computers
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
Task Automation at Scale with Celery
  • Overview of Celery and its features
  • Installing Celery and its dependencies
  • Setting up a simple Celery project
Celery Basics
  • 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

Training Materials

All Python Task Automation training students receive comprehensive courseware.

Software Requirements

  • Any Windows, Linux, or Mac OS X operating system
  • Standard Python 3.x or Anaconda Python 3.x
  • Visual Studio Code (other editors may be used, but only Visual Studio Code will be configured for a complete Python programming environment)


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan