Skip to main content

Django command to launch celery worker, beat, flower

Project description

Django command to run celery (worker, beat, flower) with automatically reboot server after changing files

Project Status
CI/CD Latest Release
Quality Coverage
Package PyPI - Version PyPI - Support Python Versions Project PyPI - Downloads
Meta types - Mypy License - MIT code style - Ruff

Install

  1. Install package

    pip install celery-starter
    
  2. Add app name to INSTALLED_APPS

    INSTALLED_APPS = [
        'celery_starter',
    ]
    

Command to run the program:

python manage.py runcelery

Arguments can be passed in any order, it doesn't matter.

Positional Arguments:

<celery app name> or <"full command to run celery worker">

Optional Arguments:

-h or --help Show help message.
-b or --beat Excludes the beat server at startup.
-f or --flower Excludes the flower server at startup.
-d or --debug Displays information about successful/unsuccessful completion of processes.
-ll or --loglevel Defines the logging level for celery worker/beat -lf or --logfile Redirects the output to the console by default to a log file for celery worker/beat

To stopped program pressing the keyboard shortcut CTRL+C

Examples of Commands

The command enclosed in quotation marks gets into the positional arguments and replaces the command to run the default celery worker. The --beat --flower commands fall into the optional arguments and turn off the beat and flower of the server.

python manage.py runcelery "celery --app=${CELERY_APP} worker -E \
--hostname=worker-example@%h
--uid=nobody --gid=nogroup \
--loglevel=INFO" --beat --flower

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celery_starter-1.0.2.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

celery_starter-1.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file celery_starter-1.0.2.tar.gz.

File metadata

  • Download URL: celery_starter-1.0.2.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for celery_starter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3b44c4583450d0422cb95a4baddb7258e65c0e43892287a3d28471575d6d7354
MD5 4fd62ff2781e48f04f2de2d6c3a2d50b
BLAKE2b-256 405a338edb14fef84a96fe3faf47fa652877daba0c08b943433dc614a8d343ea

See more details on using hashes here.

File details

Details for the file celery_starter-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for celery_starter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0938b8bac78dd7b089f6af0fd2bd695ca7086efd0b64c5d145754e53c8e6dce
MD5 d74fbae3ff887515a1ab567684e4a14d
BLAKE2b-256 4c6df3f7c0e513dfd3101f2cad00265b9d345e3212e0f7fa3e0d2adef5e464ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page