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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for id_manager-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194ccb45f535281c80911f0e2abc113be92189a36d9a6ba79284fdc8f4554d26 |
|
MD5 | 2a6f1cd1b96035bb7bfae49c57d2bc20 |
|
BLAKE2b-256 | 5f1be8d04f0bfc349dfa55f2d16bdb203d0e26116c9e4cea4fdea52af054db53 |