Skip to main content

Plugin to run Celery using the Hitch testing framework.

Project description

HitchCelery

HitchCelery is a plugin for the Hitch test framework that lets you run and interact with Celery as part of a test.

Use with Hitch

Install like so:

$ hitch install hitchcelery
# Service definition in engine's setUp:
self.services['Celery'] = hitchcelery.CeleryService(
    version="3.1.17",                                       # Mandatory
    python="{}/venv/bin/python".format(PROJECT_DIRECTORY),  # Mandatory
    app="remindme",                                         # Mandatory
    beat=False,                                             # Optional (default: False)
    concurrency=2,                                          # Optional (default: 2)
    loglevel="INFO",                                        # Optional (default: INFO)
    broker=None,                                            # Optional (default: None)
    needs=[ self.services['Redis'], ]                       # Optional (default: no prerequisites)
)


# Interact during the test:
self.services['Celery'].help().run()
[ Prints output ]

self.services['Celery'].status().run()
[ Prints status output ]

self.services['Celery'].control(*args).run()
[ Prints output ]

self.services['Celery'].inspect(*args).run()
[ Prints output ]

See this service in action at the DjangoRemindMe project.

Project details


Download files

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

Files for hitchcelery, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size hitchcelery-0.2.1.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page