--force_migrate and --cron_threads, thanks Paolo Pastori

This commit is contained in:
mdipierro committed 2019-06-06 21:23:31 -07:00
1 parent 409a499dd0
commit 7385904f97
3 files changed
+38 -7

No files matched your search

+7 -1
View File
@@ -334,7 +334,7 @@ class SimplePool(object):
self.running = set()
def grow(self, size):
if size > self.size:
if size and size > self.size:
self.size = size
def start(self, t):
@@ -380,8 +380,14 @@ class SimplePool(object):
_dancer = SimplePool(5, worker_cls=SoftWorker)
def dancer_size(size):
_dancer.grow(size)
_launcher = SimplePool(5)
def launcher_size(size):
_launcher.grow(size)
def crondance(applications_parent, ctype='hard', startup=False, apps=None):
"""
Does the periodic job of cron service: read the crontab(s) and launch