Flask Celery Example

screenshot of Flask Celery Example

Flask Celery Example

This repository contains the example code for my blog article Using Celery with Flask.

Overview

The repository contains example code showing how to use Celery with Flask, providing two examples of background tasks: sending emails asynchronously and launching asynchronous jobs with progress updates in the web page.

Features

  • Background Tasks: Provides examples of using Celery to run background tasks.
  • Asynchronous Emails: Demonstrates sending emails asynchronously using Celery.
  • Progress Updates: Shows progress updates for asynchronous jobs on the web page.
  • Simple Setup: Includes instructions for setting up the application with virtualenv and Redis server.

Summary

The repository provides examples and code for using Celery with Flask to run background tasks asynchronously, specifically for sending emails and showing progress updates for asynchronous jobs. The setup process involves cloning the repository, setting up a virtual environment, starting a Redis server, and running the application with Celery and Flask. The examples demonstrate the capabilities and usefulness of integrating Celery with Flask for handling asynchronous tasks effectively.