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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file id_manager-0.0.2-py3-none-any.whl.
File metadata
- Download URL: id_manager-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
194ccb45f535281c80911f0e2abc113be92189a36d9a6ba79284fdc8f4554d26
|
|
| MD5 |
2a6f1cd1b96035bb7bfae49c57d2bc20
|
|
| BLAKE2b-256 |
5f1be8d04f0bfc349dfa55f2d16bdb203d0e26116c9e4cea4fdea52af054db53
|