bin/cubicweb-ctl
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 22 Sep 2011 10:02:25 +0200
branchstable
changeset 7823 5f145462e041
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[repo] ensure we don't restart a task while the repo is shutting down (closes #1942736) we need a safety belt in cw itself again looping task which use 'try / except' or doesn't need to access the db (which will trigger ShuttingDown exception)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     1
#!/usr/bin/env python
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     2
from cubicweb.cwctl import run
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     3
import sys
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     4
run(sys.argv[1:])