mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-04-25 13:20:32 +08:00
The worker goroutines in `NewParallelExecutor` had no panic recovery. A panic in any executor (e.g. expression evaluation) would crash the entire runner process, leaving all steps stuck in the UI because the final status was never reported back. Add `defer`/`recover` in the worker goroutines to convert panics into errors that propagate through the normal error channel. Issue is present in latest `nektos/act` as well. Fixes https://gitea.com/gitea/act_runner/issues/371 (Partially generated by Claude) Reviewed-on: https://gitea.com/gitea/act/pulls/153 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-committed-by: silverwind <me@silverwind.io>
5.1 KiB
5.1 KiB