CI: reduce cron time to every 4 hours

The high poll rate was mostly there to avoid pauses if there are many things to build.

Since jobs now get queued we can poll at the rate at which the jobs hit their
soft limit and stop beginning new builds. If there are more builds left then
the next queued workflow will start right away now.
This commit is contained in:
Christoph Reiter 2021-04-21 15:22:44 +02:00
parent a609a9d398
commit 12703c6cd3
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ name: 'build'
on:
workflow_dispatch:
schedule:
- cron: '0 0/2 * * *'
- cron: '0 0/4 * * *'
concurrency: nope

View File

@ -132,7 +132,7 @@ class Package(dict):
# After which we shouldn't start a new build
SOFT_TIMEOUT = 60 * 60 * 3
SOFT_TIMEOUT = 60 * 60 * 4
# Packages that take too long to build, and should be handled manually
MANUAL_BUILD: List[str] = [