Skip to Content
Mastering Flask
book

Mastering Flask

by Jack Stouffer
September 2015
Intermediate to advanced
288 pages
5h 30m
English
Packt Publishing
Content preview from Mastering Flask

Monitoring Celery

When our code is pushed to the server, our Celery worker will not be run in the terminal window, it will be run as a background task. Because of this, Celery provides many command-line arguments to monitor the status of your Celery worker and tasks. These commands take the following form:

$ celery –A celery_runner <command>

The main tasks to view the status of your workers are as follows:

  • status: This prints the running workers and if they are up
  • result: When passed a task id, this shows the return value and final status of the task
  • purge: Using this, all messages in the broker will be deleted
  • inspect active: This lists all active tasks
  • inspect scheduled: This lists all tasks that have been scheduled with the eta argument
  • inspect registered ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

An Introduction to Flask

An Introduction to Flask

Miguel Grinberg
Flask Blueprints

Flask Blueprints

Joel Perras
Flask By Example

Flask By Example

Gareth Dwyer

Publisher Resources

ISBN: 9781784393656Supplemental Content