GithubHelp home page GithubHelp logo

chukwuegu / celeryman Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ahmetkotan/celeryman

0.0 1.0 0.0 9 KB

Celery Async Task Management App for Django

License: MIT License

Python 100.00%

celeryman's Introduction

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 [email protected]: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's People

Contributors

ahmetkotan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.