ID 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'