Minimal_python_flask_app_with_celery

screenshot of Minimal_python_flask_app_with_celery

This application can be used as a boilerplate for simple flask applications which uses celery. The app demonstrates the use of celery for background as well as periodic task running with python flask.

Overview:

This minimal Flask app with Celery is a boilerplate for simple Flask applications that utilize Celery for background and periodic task running. The app showcases the use of Celery for scheduled tasks, such as removing image files from a specified directory in a periodic manner. This functionality can be extended to remove other types of temporary files, such as log files.

Features:

  • Celery Integration: The app demonstrates the integration of Celery with Flask for background task processing.
  • Scheduled Task: The app includes a scheduled task, powered by Celery Beat, to periodically remove image files from a directory.
  • Ease of Setup: The app provides step-by-step instructions for setting up a virtual environment and installing the necessary dependencies.

Summary:

This minimal Flask app with Celery serves as a convenient starting point for creating Flask applications that utilize Celery for background and periodic task processing. The app demonstrates the integration of Celery, including a scheduled task powered by Celery Beat to periodically remove image files from a directory. The installation process is straightforward, involving the setup of a virtual environment and installation of dependencies.