Mercurial > kallithea
comparison pylons_app/lib/indexers/daemon.py @ 497:fb0c3af6031b celery
Implemented locking for task, to prevent for running the same tasks,
moved out pidlock library. Added dirsize display
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 23 Sep 2010 01:08:33 +0200 |
parents | fefffd6fd5f4 |
children |
comparison
equal
deleted
inserted
replaced
496:47f4c7ff245b | 497:fb0c3af6031b |
---|---|
30 | 30 |
31 #to get the pylons_app import | 31 #to get the pylons_app import |
32 project_path = dn(dn(dn(dn(os.path.realpath(__file__))))) | 32 project_path = dn(dn(dn(dn(os.path.realpath(__file__))))) |
33 sys.path.append(project_path) | 33 sys.path.append(project_path) |
34 | 34 |
35 from pidlock import LockHeld, DaemonLock | 35 from pylons_app.lib.pidlock import LockHeld, DaemonLock |
36 from pylons_app.model.hg_model import HgModel | 36 from pylons_app.model.hg_model import HgModel |
37 from pylons_app.lib.helpers import safe_unicode | 37 from pylons_app.lib.helpers import safe_unicode |
38 from whoosh.index import create_in, open_dir | 38 from whoosh.index import create_in, open_dir |
39 from shutil import rmtree | 39 from shutil import rmtree |
40 from pylons_app.lib.indexers import INDEX_EXTENSIONS, IDX_LOCATION, SCHEMA, IDX_NAME | 40 from pylons_app.lib.indexers import INDEX_EXTENSIONS, IDX_LOCATION, SCHEMA, IDX_NAME |