~comcloudway/ansible-srht

c17179c98b3325b1da61a4fd7fd732c3abe14542 — Jakob Meier 1 year, 12 days ago 1dbd721
Made worker timeout configureable
2 files changed, 5 insertions(+), 2 deletions(-)

M roles/builds.sr.ht/defaults/main.yml
M roles/builds.sr.ht/tasks/worker.yml
M roles/builds.sr.ht/defaults/main.yml => roles/builds.sr.ht/defaults/main.yml +4 -1
@@ 6,4 6,7 @@ buildssrht_oauth_client_secret: ""
# where to store the logs
buildssrht_runner_log_dir: "/var/log/srhtrunner"
# how much memory the worker vm may use
buildssrht_runner_mem: "2048"
buildssrht_runner_mem: "2048M"
# how long the runner may be active
# see buildssrht_runner_timeout for more
buildssrht_runner_timeout: "45m"

M roles/builds.sr.ht/tasks/worker.yml => roles/builds.sr.ht/tasks/worker.yml +1 -1
@@ 43,7 43,7 @@
      controlcmd=/var/lib/images/control
      #
      # Max build duration. See https://golang.org/pkg/time/#ParseDuration
      timeout=45m
      timeout={{ buildssrht_runner_timeout }}
      #
      # Http bind address for serving local build information/monitoring
      bind-address=0.0.0.0:8080