mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-21 18:11:06 +00:00
wait as long as required for health check configuration
timeout when context is cancelled, rather than fixed iteration count
This commit is contained in:
parent
d14092ea56
commit
b46c03d75a
4 changed files with 66 additions and 20 deletions
|
@ -493,8 +493,12 @@ func (e *HostEnvironment) GetRunnerContext(_ context.Context) map[string]interfa
|
|||
}
|
||||
}
|
||||
|
||||
func (e *HostEnvironment) GetHealth(ctx context.Context) Health {
|
||||
return HealthHealthy
|
||||
func (e *HostEnvironment) GetHealth(ctx context.Context) (Health, error) {
|
||||
return HealthHealthy, nil
|
||||
}
|
||||
|
||||
func (e *HostEnvironment) GetHealthCheckTimeout(ctx context.Context) (*time.Duration, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (e *HostEnvironment) ReplaceLogWriter(stdout, _ io.Writer) (io.Writer, io.Writer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue