mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-06-24 02:01:03 -04:00
0abc43bffc
Runners were launched in parallel subshells with only a 2-second gap between them. act_runner register is a network call; if Gitea was still warming up any registration could race past an earlier one, causing Gitea to assign IDs out of sequence (1,3,2,5,4 instead of 1,2,3,4,5). Split into two phases: register all runners sequentially first so IDs are assigned in the correct order, then launch all daemons in parallel once every runner is confirmed registered. - rootfs/usr/local/bin/start-runners: split __start_runner into __register_runner (sequential, phase 1) and __start_runner_daemon (parallel, phase 2); remove the sleep 2 workaround rootfs/usr/local/bin/start-runners