aboutsummaryrefslogtreecommitdiff
path: root/bbot/bbot-agent@.service
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-20 14:42:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-20 14:42:47 +0200
commit629dee358ea0879ae42a026dae6aacc41cb8042a (patch)
tree766ff4f3f7df0d591cf6353e840e79bba0ea2830 /bbot/bbot-agent@.service
parentf34a7f32a4492465e0b0f1874845d285a69b86f9 (diff)
Add support for controller request retries, connection timeout
Diffstat (limited to 'bbot/bbot-agent@.service')
-rw-r--r--bbot/bbot-agent@.service6
1 files changed, 6 insertions, 0 deletions
diff --git a/bbot/bbot-agent@.service b/bbot/bbot-agent@.service
index 41486e2..3f41abc 100644
--- a/bbot/bbot-agent@.service
+++ b/bbot/bbot-agent@.service
@@ -14,9 +14,13 @@ Environment=RAM=1048576
Environment=BOOTSTRAP_TIMEOUT=900
Environment=BOOTSTRAP_RETRIES=2
+
Environment=BUILD_TIMEOUT=1800
Environment=BUILD_RETRIES=2
+
+Environment=CONNECT_TIMEOUT=60
Environment=REQUEST_TIMEOUT=300
+Environment=REQUEST_RETRIES=4
Environment=TOOLCHAIN_NAME=%i
Environment=TOOLCHAIN_NUM=1
@@ -35,7 +39,9 @@ ExecStart=/build/bots/%i/bin/bbot-agent --systemd-daemon \
--bootstrap-retries ${BOOTSTRAP_RETRIES} \
--build-timeout ${BUILD_TIMEOUT} \
--build-retries ${BUILD_RETRIES} \
+ --connect-timeout ${CONNECT_TIMEOUT} \
--request-timeout ${REQUEST_TIMEOUT} \
+ --request-retries ${REQUEST_RETRIES} \
--toolchain-name ${TOOLCHAIN_NAME} \
--toolchain-num ${TOOLCHAIN_NUM} \
--toolchain-ver ${TOOLCHAIN_VER} \