diff options
author | Francesco Antognazza <francesco.antognazza@gmail.com> | 2023-10-02 23:09:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 23:09:26 +0200 |
commit | bc21723717a00888722c86641b70371a811867f9 (patch) | |
tree | 31ea636cc61af5e26c604bcd197c06b4cd9b47f8 /custom | |
parent | Fix git 2.11 error when checking IsEmpty (again) (#27399) (diff) | |
download | forgejo-bc21723717a00888722c86641b70371a811867f9.tar.xz forgejo-bc21723717a00888722c86641b70371a811867f9.zip |
Make Actions tasks/jobs timeouts configurable by the user (#27400)
With this PR we added the possibility to configure the Actions timeouts
values for killing tasks/jobs.
Particularly this enhancement is closely related to the `act_runner`
configuration reported below:
```
# The timeout for a job to be finished.
# Please note that the Gitea instance also has a timeout (3h by default) for the job.
# So the job could be stopped by the Gitea instance if it's timeout is shorter than this.
timeout: 3h
```
---
Setting the corresponding key in the INI configuration file, it is
possible to let jobs run for more than 3 hours.
Signed-off-by: Francesco Antognazza <francesco.antognazza@gmail.com>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.example.ini | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index cd6b2a914d..7db3c157c9 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2568,6 +2568,12 @@ LEVEL = Info ;DEFAULT_ACTIONS_URL = github ;; Default artifact retention time in days, default is 90 days ;ARTIFACT_RETENTION_DAYS = 90 +;; Timeout to stop the task which have running status, but haven't been updated for a long time +;ZOMBIE_TASK_TIMEOUT = 10m +;; Timeout to stop the tasks which have running status and continuous updates, but don't end for a long time +;ENDLESS_TASK_TIMEOUT = 3h +;; Timeout to cancel the jobs which have waiting status, but haven't been picked by a runner for a long time +;ABANDONED_JOB_TIMEOUT = 24h ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |