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-10-06 15:40:07 +0200
commit6a5c8fce4051476f398191b15763e144ea358424 (patch)
treeadb4ee63084ee3e06f871a429355448599dcb521 /bbot/bbot-agent@.service
parente2293b22dfd26c5612c7c2d090d3be9392d82af9 (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} \