# miguelgrinberg/flask-celery-example

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

Repository: https://github.com/miguelgrinberg/flask-celery-example
Canonical: https://ross.abutalabs.com/products/flask-celery-example
Homepage: http://blog.miguelgrinberg.com/post/using-celery-with-flask
Language: Python
License: MIT
License Family: permissive
Last push: 2023-01-03T11:17:14+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4265, "days_push": 1338, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1214, forks 316 (observed 2026-08-28T04:04:00.788300+00:00)

## What it is
Example code accompanying Miguel Grinberg's blog article 'Using Celery with Flask', demonstrating how to run background tasks with Celery in a Flask application. It includes two demos: sending emails asynchronously and launching asynchronous jobs with progress updates in the web page.

## Use cases
- learn how to integrate Celery with Flask
- run background tasks in a Flask app
- send emails asynchronously from a web application
- show progress updates for long-running jobs in the browser
- set up a Celery worker with Redis as broker
- example of scalable task queue architecture in Python

## When to choose
- you are learning Celery and Flask integration from a well-known tutorial
- you need a minimal working reference for background tasks in Flask
- you want to see email sending and progress-tracking task patterns

## When to avoid
- you need a production-ready task queue solution rather than example code
- you use a framework other than Flask
- you expect active development, new features, or support

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: workflow-automation, web-framework, message-queue, email
- domain: web-development, backend, developer-tools, tutorials
- platform: python, cross-platform
- tags: celery, flask, background-tasks, task-queue, redis, example-code, tutorial

## Member repositories
- miguelgrinberg/flask-celery-example (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.788300+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:30.050415+00:00, confidence not recorded.
  - readme: https://github.com/miguelgrinberg/flask-celery-example (fetched 2026-08-28T04:04:00.788300+00:00, sha 7fdf75d71317)
  - homepage: http://blog.miguelgrinberg.com/post/using-celery-with-flask (fetched 2026-08-29T12:25:34.972931+00:00, sha 06e22d1fa98c)
  - site_page: https://blog.miguelgrinberg.com:443/post/about-me (fetched 2026-08-29T12:25:34.982786+00:00, sha 9d2b18ef2f30)
- Data as of 2026-08-30T08:39:29.467469+00:00.
