Celery Management App for Django
Project description
=====================================================================
Celeryman
=====================================================================
Celeryman is a management application for celery async tasks on django.
It can manage created async tasks or you can create async task with ManagedTask or CeleryTask models.
Task cannot be created with the same arguments at the same time.
Installation
============
on Pypi
::
pip install celeryman
on Github
::
git clone git@github.com:ahmetkotan/celeryman.git
cd celeryman
python setup.py install
Settings
============
After celery integration is completed, just add the celeryman app to `INSTALLED_APPS`.
::
INSTALLED_APPS = [
...
'celeryman',
...
]
About
=====
When celery service is run, Celeryman will discover tasks and save to database as CeleryTask object.
If you create async task with `apply_async()`, `delay()` etc. methods, Celeryman will create ManagedTask object when task is start.
::
timer_task.apply_async((10,))
Usage
=====
Async task with ManagedTask and CeleryTask model.
::
m = ManagedTask.objects.create(task_name='timer_task', celery_task_args=[10])
m.set_task_args([10]) # if you don't use celery_task_args when created object, you can set with this method.
m.start()
m.stop()
Or use
::
c = CeleryTask.objects.get(task_name='timer_task')
c.set_task_args([10])
managed_task = c.start()
managed_task.stop()
Admin Panel
===========
To usable the async tasks:
http://localhost:8000/admin/celeryman/celerytask/
To view the created async tasks and to create new async task:
http://localhost:8000/admin/celeryman/managedtask/
Celeryman
=====================================================================
Celeryman is a management application for celery async tasks on django.
It can manage created async tasks or you can create async task with ManagedTask or CeleryTask models.
Task cannot be created with the same arguments at the same time.
Installation
============
on Pypi
::
pip install celeryman
on Github
::
git clone git@github.com:ahmetkotan/celeryman.git
cd celeryman
python setup.py install
Settings
============
After celery integration is completed, just add the celeryman app to `INSTALLED_APPS`.
::
INSTALLED_APPS = [
...
'celeryman',
...
]
About
=====
When celery service is run, Celeryman will discover tasks and save to database as CeleryTask object.
If you create async task with `apply_async()`, `delay()` etc. methods, Celeryman will create ManagedTask object when task is start.
::
timer_task.apply_async((10,))
Usage
=====
Async task with ManagedTask and CeleryTask model.
::
m = ManagedTask.objects.create(task_name='timer_task', celery_task_args=[10])
m.set_task_args([10]) # if you don't use celery_task_args when created object, you can set with this method.
m.start()
m.stop()
Or use
::
c = CeleryTask.objects.get(task_name='timer_task')
c.set_task_args([10])
managed_task = c.start()
managed_task.stop()
Admin Panel
===========
To usable the async tasks:
http://localhost:8000/admin/celeryman/celerytask/
To view the created async tasks and to create new async task:
http://localhost:8000/admin/celeryman/managedtask/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
celeryman-0.9.1.3.tar.gz
(6.3 kB
view details)
File details
Details for the file celeryman-0.9.1.3.tar.gz
.
File metadata
- Download URL: celeryman-0.9.1.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3402ef0e497b5b3b8ffb64eb9c0ad827bbaee561820514a87918fc97032b8d95 |
|
MD5 | 99fe63fa037f4edf5891f485820ac745 |
|
BLAKE2b-256 | 7aa0d5ed2689fb0a64de529f01cc1101fd5d5c8eb8ecd250211a27b1d6cad800 |