Tweak default luigi config; allow specifying version

to accommodate one particular install, but is generally okay i think..
This commit is contained in:
Lance Edgar 2022-03-18 21:46:41 -05:00
parent 5df704679f
commit 5a4e2701df
2 changed files with 15 additions and 15 deletions

View file

@ -9,22 +9,22 @@
<%text>############################################################</%text>
# [core]
[core]
# # Number of seconds to wait before timing out when making an API call. Defaults
# # to 10.0
# # (sometimes things can lag for us and we simply need to give it more time)
# rpc_connect_timeout = 60
# Number of seconds to wait before timing out when making an API call. Defaults
# to 10.0
# (sometimes things can lag for us and we simply need to give it more time)
rpc_connect_timeout = 60
# # The maximum number of retries to connect the central scheduler before giving
# # up. Defaults to 3
# # (occasional network issues seem to cause us to need more/longer retries)
# rpc_retry_attempts = 10
# The maximum number of retries to connect the central scheduler before giving
# up. Defaults to 3
# (occasional network issues seem to cause us to need more/longer retries)
rpc_retry_attempts = 10
# # Number of seconds to wait before the next attempt will be started to connect
# # to the central scheduler between two retry attempts. Defaults to 30
# # (occasional network issues seem to cause us to need more/longer retries)
# rpc_retry_wait = 60
# Number of seconds to wait before the next attempt will be started to connect
# to the central scheduler between two retry attempts. Defaults to 30
# (occasional network issues seem to cause us to need more/longer retries)
rpc_retry_wait = 60
[scheduler]
state_path = ${appdir}/luigi/state.pickle

View file

@ -32,7 +32,7 @@ from rattail_fabric2 import make_deploy, mkdir
deploy_common = make_deploy(__file__)
def install_luigi(c, envroot, user='rattail', db_connection=None):
def install_luigi(c, envroot, luigi='luigi', user='rattail', db_connection=None):
"""
Install and configure Luigi to the given virtualenv.
"""
@ -41,7 +41,7 @@ def install_luigi(c, envroot, user='rattail', db_connection=None):
appdir = '{}/app'.format(envroot)
# package
c.sudo("bash -lc 'workon {} && pip install luigi'".format(envname),
c.sudo("""bash -lc "workon {} && pip install '{}'" """.format(envname, luigi),
user=user)
# dirs