Skip to main content

Task manager celery to django

Project description

TASK MANAGER

Install

Use pip to install the latest stable version of id-manager:

$ pip install id-manager

How to use

in tasks.py

from id_manager.services import TaskManager

@task(name='get_urls')
def get_urls():
    go = TaskManager(name='get_urls')
    if go.start() is True:
        go.close()
        return 'ok'
    else:
        return 'lock'

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

id_manager-0.0.2-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

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