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