feat: Makes runner timeout configurable

This commit is contained in:
p4u1 2025-02-07 16:55:21 +01:00
parent a909f2f1e7
commit 88e3f93768
3 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@ CACHE_ENABLED=false
# Defines the number of concrurrent tasks to be run
RUNNER_CAPACITY=1
RUNNER_TIMEOUT=3h
# Set to 'host', to use the host network. When left empty it creates a temporary
# network for each container.
#CONTAIER_NETWORK

View File

@ -1,4 +1,4 @@
export RUNNER_CONF_VERSION=v7
export RUNNER_CONF_VERSION=v8
export ENTRYPOINT_VERSION=v9
register_runner() {

View File

@ -17,7 +17,7 @@ runner:
# The timeout for a job to be finished.
# Please note that the Forgejo instance also has a timeout (3h by default) for the job.
# So the job could be stopped by the Forgejo instance if it's timeout is shorter than this.
timeout: 3h
timeout: {{ env "RUNNER_TIMEOUT" }}
# Whether skip verifying the TLS certificate of the Forgejo instance.
insecure: false
# The timeout for fetching the job from the Forgejo instance.